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

Update ONC VENUS nodes model/obs comparison figure module #254

Merged
merged 6 commits into from
Apr 8, 2024

Conversation

douglatornell
Copy link
Member

  • Handle missing dev run fields because we stopped running nowcast-dev with the release of v202111
  • Update code that collects observations from ONC to use the v3 API

The commit adds the Jupyter 'notebook' package to the environment for figures
development in environment-fig-dev.yaml. It used to be installed as a dependency
of the 'jupyterlab' package, but now must be installed separately.
A docstring was added to compare_venus_ctd.py. It includes an explanation of the
figure that the module created and the link to its testing notebook.
The code in compare_venus_ctd.py has been updated to gracefully handle cases
when the development run fields dataset (dev_grid_T_hr) is missing or not
provided. Previously, missing development grid data would have caused an
exception. Now, the code tests for this condition and sets other corresponding
variables to None as necessary, preventing the figure generation from crashing.
This elimination of unwanted exceptions makes the application more robust and
easier to maintain.
The data_tools.get_onc_data() call in the compare_venus_ctd figure module was
updated to use the ONC API v3. Parameters "getByStation", "station",
"deviceCategory", and "sensors" have been replaced with "getByLocation",
"locationCode", "deviceCategoryCode", and "sensorCategoryCodes", respectively.
@douglatornell douglatornell added bug Something isn't working Figures Website figure module code labels Apr 5, 2024
@douglatornell douglatornell added this to the v24.1 milestone Apr 5, 2024
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Attention: Patch coverage is 10.00000% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 77.77%. Comparing base (ecc0aa2) to head (7e471b5).

Files Patch % Lines
nowcast/figures/comparison/compare_venus_ctd.py 6.66% 14 Missing ⚠️
nowcast/workers/make_plots.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #254      +/-   ##
==========================================
- Coverage   77.79%   77.77%   -0.03%     
==========================================
  Files         133      133              
  Lines       18817    18822       +5     
  Branches     1910     1914       +4     
==========================================
  Hits        14639    14639              
- Misses       4111     4116       +5     
  Partials       67       67              
Flag Coverage Δ
unittests 77.77% <10.00%> (-0.03%) ⬇️

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.

This commit adjusts the handling of 'nowcast-dev' configuration entry in
'nowcast.yaml' and 'make_plots.py'. If 'nowcast-dev' results archive path is set
to 'None', the code no longer tries to work with non-existent directories. This
change is reflected in update of related tests as well.
The "Compare_VENUS_Delta_DDL" figure calculation has been removed from the
make_plots worker. The ONC DDL node deployment ended in Mar-2024.
@douglatornell douglatornell merged commit c00c899 into main Apr 8, 2024
5 of 7 checks passed
@douglatornell douglatornell deleted the venus-ctd-fig-dev-optional branch April 8, 2024 18:47
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.

1 participant