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 broken web site time series plots. #249

Merged
merged 10 commits into from
Mar 30, 2024
Merged

Conversation

douglatornell
Copy link
Member

@douglatornell douglatornell commented Mar 29, 2024

Web site time series plots broke when v202111 was released because the ERDDAP URLs that they use to access the model results were not updated.

Also improve make_plots worker unit tests:

Test suite maintenance.

re: issue #81
@douglatornell douglatornell added bug Something isn't working Workers maintenance Codebase maintenance config Automation configuration labels Mar 29, 2024
@douglatornell douglatornell added this to the v24.1 milestone Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.79%. Comparing base (2bdd7ca) to head (dbdb26b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #249      +/-   ##
==========================================
+ Coverage   77.73%   77.79%   +0.06%     
==========================================
  Files         133      133              
  Lines       18769    18817      +48     
  Branches     1906     1910       +4     
==========================================
+ Hits        14590    14639      +49     
+ Misses       4112     4111       -1     
  Partials       67       67              
Flag Coverage Δ
unittests 77.79% <100.00%> (+0.06%) ⬆️

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.

Removed not informative "Set up and run the worker." line at the beginning.

re: issue #121
Replace unittest.mock.patch decorator with pytest caplog fixture for tests of
logging.

Test suite maintenance re: issue #82.
Add unit tests for production YAML config file elements related to worker;
re: issue #117.
The ferry_data_dir configuration was retrieved but not used in the make_plots.py
worker script. This change removes the unneeded line to tidy up the code and
avoid potential confusion in the future.
The URLs for '3d tracer fields' and '3d biology fields' have been updated in the
test_make_plots.py and nowcast.yaml files.
This commit changes the '3d tracer fields' key in the nowcast.yaml configuration
file, the make_plots.py worker and test_make_plots.py tests to
'3d physics fields'. This change better reflects in the relevant data source
URLs.
Update zooplankton field variable names for the time series plot function in the
make_plots worker. Specifically, change "mesozooplankton" and "microzooplankton"
to "z1_zooplankton" and "z2_zooplankton". This update ensures consistency with
the V21-11 model output variable names.
In the 'make_plots' worker, the field variable 'mesodinium' was changed to
'diatoms' for the time series plots. The 'diatoms_flagellates_timeseries'
dictionary key is adjusted accordingly. This is necessary due to the removal of
the Mesodinium rubrum variable from the V21-11 model calculations and output.
Two new types of zooplankton, 'z1_zooplankton' and 'z2_zooplankton', have been
added to the color dictionary of nowcast/figures/website_theme.py file. This
change would allow the correct color to be displayed for these new types in the
corresponding plots.
@douglatornell douglatornell merged commit 0c53aac into main Mar 30, 2024
7 checks passed
@douglatornell douglatornell deleted the fix-time-series-plots branch March 30, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working config Automation configuration maintenance Codebase maintenance Workers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant