Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update xferfcn.py - numpy deprecations.#539

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bnavigator merged 1 commit intopython-control:masterfromAutomotiveDevOps:master
Feb 9, 2021

Conversation

dapperfu
Copy link
Contributor

DeprecationWarning:np.int is a deprecated alias for the builtinint. To silence this warning, useint by itself. Doing this will not modify any behavior and is safe. When replacingnp.int, you may wish to use e.g.np.int64 ornp.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.

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

Changed the logic to check for an instance of both 32 & 64-bit ints.

Thenp.int is covered by the builtinint:

>>> isinstance(np.int(1), (int, np.int32, np.int64))True>>> isinstance(int(1), (int, np.int32, np.int64))True

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 88.271% when pulling0c03dd7 on AutomotiveDevOps:master intoc04431f on python-control:master.

@bnavigator
Copy link
Contributor

Thanks for the heads up. Looks good to me.

In the long term, wie should just cast to float (or complex) without checking.

@bnavigatorbnavigator merged commitcc67807 intopython-control:masterFeb 9, 2021
@murrayrmmurrayrm added this to the0.9.0 milestoneMar 20, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.0
Development

Successfully merging this pull request may close these issues.

4 participants
@dapperfu@coveralls@bnavigator@murrayrm

[8]ページ先頭

©2009-2025 Movatter.jp