-
Notifications
You must be signed in to change notification settings - Fork 3
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
Change 'np.NaN' to 'np.nan' re: Numpy 2.0 #272
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'numpy.nan' is the correct spelling in Numpy 2.0. All others are deprecated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #272 +/- ##
=======================================
Coverage 77.64% 77.64%
=======================================
Files 133 133
Lines 18695 18695
Branches 1910 1910
=======================================
Hits 14515 14515
Misses 4113 4113
Partials 67 67
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
douglatornell
added a commit
that referenced
this pull request
Jan 28, 2025
'numpy.nan' is the correct spelling in Numpy 2.0. All others are deprecated. Missed in PR #272.
douglatornell
added a commit
that referenced
this pull request
Feb 1, 2025
… 3.13 (#327) * Add missing SPDX short-form license identifiers Ensures compliance with licensing practices by adding SPDX license identifiers to `make_plots.py` and `tracer_thalweg_and_surface_hourly.py`. This improves clarity and streamlines license management across the codebase. * Update tracer_thalweg_and_surface_hourly fig test notebook Update test notebook for `tracer_thalweg_and_surface_hourly` figure module and confirm that the module works in a production environment based on Python 3.13. * Correct bathymetry file name in fig test notebook Updated bathymetry file name in test notebook for `tracer_thalweg_and_surface_hourly` figure module to `bathymetry_202108.nc`. * Update velocity_section_and_surface fig test notebook Update test notebook for `velocity_section_and_surface` figure module and confirm that the module works in a production environment based on Python 3.13. * Update README for research figures notebooks Modernized `make_readme.py` script. * Update broken links to CONTRIBUTORS in docs Replaced outdated "master" branch links with "main" branch links in `README.rst` and `docs/license_description.txt`. Ensures references to CONTRIBUTORS file are accurate and functional. * Add TestPlotVelNEGridded figure test notebook Introduced a new notebook to test the `research_VENUS.plot_vel_NE_gridded()` function. It replicates production settings for validation and highlights the need for a refactor into a proper figure module. Updated README.md with the new notebook entry and corrected a link typo. * Update time_series_plots fig test notebook Update test notebook for `time_series_plots` figure module and confirm that the module works in a production environment based on Python 3.13. * Update README for comparison figures notebooks Modernized `make_readme.py` script. * Update sandheads_winds fig test notebook Update test notebook for `sandheads_winds` figure module and confirm that the module works in a production environment based on Python 3.13. * Update compare_venus_ctd fig test notebook Update test notebook for `compare_venus_ctd` figure module and confirm that the module works in a production environment based on Python 3.13. * Change 'np.NaN' to 'np.nan' re: Numpy 2.0 'numpy.nan' is the correct spelling in Numpy 2.0. All others are deprecated. Missed in PR #272. * Update storm_surge_alerts_thumbnail fig test notebook Update test notebook for `storm_surge_alerts_thumbnail` figure module and confirm that the module works in a production environment based on Python 3.13. * Update storm_surge_alerts fig test notebook Update test notebook for `storm_surge_alerts` figure module and confirm that the module works in a production environment based on Python 3.13. * Update pt_atkinson_tide fig test notebook Update test notebook for `pt_atkinson_tide` figure module and confirm that the module works in a production environment based on Python 3.13. * Adjust 10-min averaging to correctly offset timestamps Removed the deprecated `loffset` parameter and manually adjusted the timestamps with a calculated offset. Ensures proper alignment of resampled data timestamps for accurate comparison. * Re-run notebooks with Bitstream Vera fonts installed This gets rid of the huge number of `findfont: Font family 'Bitstream Vera Sans' not found` messages. * Update compare_tide_prediction_max_ssh fig test notebook Update test notebook for `compare_tide_prediction_max_ssh` figure module and confirm that the module works in a production environment based on Python 3.13. Halfmoon Bay dn Squamish figures commented out due to disappearance of obs from CHS server. * Update README for publish figures notebooks Modernized `make_readme.py` script. * Remove unnecessary column renaming in tide predictions The column renaming for "pred_noshallow" in the ttide dataset is no longer required thanks to SalishSeaCast/tools#132 and has been removed. This improves code clarity and eliminates an unneeded operation. * Update dict key for tidal prediction difference Delete extra spaces in the "pred_noshallow" key that were eliminated at source in SalishSeaCast/tools#132. * Re-run notebooks after stormtools date parsing fix This gets rid of a large number of FutureWarning messages. * Update surface_current_tiles fig test notebook Update test notebook for `surface_current_tiles` figure module and confirm that the module works in a production environment based on Python 3.13. * Update wave_height_period fig test notebook Update test notebook for `wave_height_period` figure module and confirm that the module works in a production environment based on Python 3.13. * Update README for wwatch3 figures notebooks Modernized `make_readme.py` script.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
'numpy.nan' is the correct spelling in Numpy 2.0. All others are deprecated.