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 Baynes Sound AGRIF figure #326

Merged
merged 3 commits into from
Jan 23, 2025
Merged

Fix Baynes Sound AGRIF figure #326

merged 3 commits into from
Jan 23, 2025

Conversation

douglatornell
Copy link
Member

@douglatornell douglatornell commented Jan 22, 2025

Production figure generation started failing due to 11-Jan-2025 due to removal of ubcSSnBathymetryV17-02 dataset from ERDDAP. Refactoring to address that change revealed opportunities for modernization of the figure module, and an issue arising from the change to numpy>=2 that was also addressed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Replaced the bathymetry URL reference in the Baynes Sound AGRIF figure
configuration with a local grid path because the V17-02 bathymetry dataset has
been removed from the ERDDAP server. Adjusted related test cases and updated the
figure development and testing notebooks to align with the new configuration.
The change ensures consistent use of the h5netcdf engine when opening datasets
with xarray. This improves compatibility and aligns with recommended practices
for handling NetCDF files in the workflow.
@douglatornell douglatornell added bug Something isn't working Figures Website figure module code labels Jan 22, 2025
@douglatornell douglatornell added this to the v25.1 milestone Jan 22, 2025
@douglatornell douglatornell linked an issue Jan 22, 2025 that may be closed by this pull request
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 37.50000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 77.72%. Comparing base (be1313f) to head (24d9e79).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
nowcast/figures/research/baynes_sound_agrif.py 0.00% 8 Missing ⚠️
nowcast/workers/make_plots.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
- Coverage   77.72%   77.72%   -0.01%     
==========================================
  Files         132      132              
  Lines       18777    18780       +3     
  Branches      762      762              
==========================================
+ Hits        14595    14597       +2     
- Misses       4116     4117       +1     
  Partials       66       66              
Flag Coverage Δ
unittests 77.72% <37.50%> (-0.01%) ⬇️

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

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

@douglatornell douglatornell changed the title Baynes sound bathy Fix Baynes Sound AGRIF figure Jan 22, 2025
Previously, the contour level calculation used non-scalar types directly,
causing errors. Added `.values` to ensure proper handling of scalar values
extracted from xarray objects. This issue arose with the change to `numpy>=2`.
@douglatornell douglatornell merged commit 32ac2ba into main Jan 23, 2025
6 of 8 checks passed
@douglatornell douglatornell deleted the baynes-sound-bathy branch January 23, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Figures Website figure module code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Baynes Sound AGRIF results figure generation is failing
1 participant