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

Adds support for numpy>=2.0.0 #1829

Merged
merged 17 commits into from
Jul 17, 2024
Merged

Adds support for numpy>=2.0.0 #1829

merged 17 commits into from
Jul 17, 2024

Conversation

kbwestfall
Copy link
Collaborator

Accommodates changes in numpy version 2.0.

According to this, these changes should not affect use by numpy <2.0.0, so I haven't included an increment in the dependency version requirements yet. But we should likely warn users to be aware of this change and encourage them to upgrade numpy once this is released.

I'll re-run the dev-suite on this and post the results, but we should expect some bok_bc failures that we need to fix before tagging a new release.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 48.96332% with 320 lines in your changes missing coverage. Please review.

Project coverage is 38.48%. Comparing base (8ec2351) to head (304d424).
Report is 87 commits behind head on develop.

Files Patch % Lines
pypeit/scripts/cache_github_data.py 1.78% 55 Missing ⚠️
pypeit/cache.py 66.41% 44 Missing ⚠️
pypeit/scripts/clean_cache.py 13.33% 39 Missing ⚠️
pypeit/core/wavecal/templates.py 0.00% 21 Missing ⚠️
pypeit/pypeitdata.py 79.06% 18 Missing ⚠️
pypeit/utils.py 55.00% 18 Missing ⚠️
pypeit/core/flux_calib.py 51.85% 13 Missing ⚠️
pypeit/io.py 50.00% 10 Missing ⚠️
pypeit/scripts/install_extinctfile.py 9.09% 10 Missing ⚠️
pypeit/scripts/install_linelist.py 9.09% 10 Missing ⚠️
... and 37 more

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1829      +/-   ##
===========================================
- Coverage    38.53%   38.48%   -0.05%     
===========================================
  Files          206      207       +1     
  Lines        47992    48151     +159     
===========================================
+ Hits         18494    18532      +38     
- Misses       29498    29619     +121     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@profxj profxj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for this!

xsize = slit_righ - slit_left
#nsamp = np.ceil(np.median(xsize)) # JFH Changed 07-07-19
nsamp = np.ceil(xsize.max())
if nobj == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look like numpy issues, so I assume some other
bits and pieces slipped in. which is fine

@kbwestfall
Copy link
Collaborator Author

Tests pass, except for the one expected failure.

Test Summary
--------------------------------------------------------
--- PYTEST PYPEIT UNIT TESTS PASSED  256 passed, 6720 warnings in 510.85s (0:08:30) ---
--- PYTEST UNIT TESTS PASSED  148 passed, 2653 warnings in 916.53s (0:15:16) ---
--- PYTEST VET TESTS PASSED  61 passed, 105975 warnings in 5540.82s (1:32:20) ---
--- PYPEIT DEVELOPMENT SUITE FAILED 1/239 TESTS  ---
Failed tests:
    bok_bc/600 pypeit
Skipped tests:
Testing Started at 2024-07-16T18:18:46.734145
Testing Completed at 2024-07-17T13:49:03.433300
Total Time: 19:30:16.699155

Merging!

@kbwestfall kbwestfall merged commit c60cb03 into develop Jul 17, 2024
23 checks passed
@kbwestfall kbwestfall deleted the numpy_v2 branch July 17, 2024 14:48
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