Skip to content
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

Numpy deprecation warnings #129

Closed
toaarnio opened this issue Oct 1, 2021 · 1 comment
Closed

Numpy deprecation warnings #129

toaarnio opened this issue Oct 1, 2021 · 1 comment

Comments

@toaarnio
Copy link
Contributor

toaarnio commented Oct 1, 2021

The unsized basic datatypes np.float and np.int have been deprecated by Numpy. This is causing warnings at import spectral. Example:

[...] lib/python3.8/site-packages/spectral/config.py:160: DeprecationWarning: `np.int` is a deprecated alias
for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior
and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the
precision. If you wish to review your current use, check the release note link for additional information.
@tboggs
Copy link
Member

tboggs commented Oct 1, 2021

Thanks for the update!

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

No branches or pull requests

2 participants