Skip to content

remove np.int #978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

AbhiramShenoiKodiak
Copy link

In numpy versions >1.24 the usage of np.int has been deprecated. This is the only file that uses this.

This PR makes a change to allow python-control to be compatible with numpy > 1.24.

https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

@bnavigator
Copy link
Contributor

Thanks, but this is unused old code. This should be "fixed" when actually merged into python-control or be removed.

An thoughts @robertobucher, @murrayrm?

@bnavigator
Copy link
Contributor

Also, if we fix it, Plain int instead of np.int64 should be used.

@coveralls
Copy link

Coverage Status

coverage: 94.422%. remained the same
when pulling 429a5a0 on AbhiramShenoiKodiak:patch-1
into 7a70be1 on python-control:main.

@murrayrm
Copy link
Member

I think we can probably remove the external/ directory. It was there from a time when we were missing some code and I thought people might want to see other implementations. We don't actively use it and it is probably mostly out of date.

I'll post a short PR to remove it and close out this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants