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

Fix numpy.int deprecation #40

Merged
merged 2 commits into from
Aug 30, 2023
Merged

Fix numpy.int deprecation #40

merged 2 commits into from
Aug 30, 2023

Conversation

douglatornell
Copy link
Member

re: issue #39

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 added the bug Something isn't working label Aug 30, 2023
@douglatornell douglatornell added this to the v22.2 milestone Aug 30, 2023
@douglatornell douglatornell linked an issue Aug 30, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #40 (d36cad5) into main (43db0f1) will not change coverage.
Report is 14 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #40   +/-   ##
=======================================
  Coverage   56.54%   56.54%           
=======================================
  Files          12       12           
  Lines        1107     1107           
=======================================
  Hits          626      626           
  Misses        481      481           
Flag Coverage Δ
unittests 56.54% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
moad_tools/midoss/random_oil_spills.py 61.43% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@douglatornell douglatornell merged commit 39a54b0 into main Aug 30, 2023
8 of 9 checks passed
@douglatornell douglatornell deleted the fix-numpy.int-deprecation branch August 30, 2023 18:12
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 this pull request may close these issues.

AttributeError: module 'numpy' has no attribute 'int'
1 participant