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

AttributeError: module 'numpy' has no attribute 'int' #39

Closed
douglatornell opened this issue Aug 30, 2023 · 0 comments · Fixed by #40
Closed

AttributeError: module 'numpy' has no attribute 'int' #39

douglatornell opened this issue Aug 30, 2023 · 0 comments · Fixed by #40
Assignees
Labels
bug Something isn't working
Milestone

Comments

@douglatornell
Copy link
Member

Message in testing log:

np.int was a deprecated alias for the builtin int. To avoid this error in existing code, 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.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations.

@douglatornell douglatornell added the bug Something isn't working label Aug 30, 2023
@douglatornell douglatornell added this to the v22.2 milestone Aug 30, 2023
douglatornell added a commit that referenced this issue Aug 30, 2023
Switched from using numpy.int() to Python's inbuilt int() to typecast the
time_period total seconds in the random_oil_spills module. This change is
necessary due to the deprecation of numpy.int in NumPy=1.20.

re: issue #39
@douglatornell douglatornell linked a pull request Aug 30, 2023 that will close this issue
douglatornell added a commit that referenced this issue Aug 30, 2023
* Update pkgs & versions used in recent dev env

* Change numpy.int to Python int in random_oil_spills

Switched from using numpy.int() to Python's inbuilt int() to typecast the
time_period total seconds in the random_oil_spills module. This change is
necessary due to the deprecation of numpy.int in NumPy=1.20.

re: issue #39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant