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

Add USGS rivers to collect_river_data #143

Merged
merged 11 commits into from
Jan 10, 2023
Merged

Add USGS rivers to collect_river_data #143

merged 11 commits into from
Jan 10, 2023

Conversation

douglatornell
Copy link
Member

SalishSeaCast NEMO v202111 uses many more observed river discharges than previous versions. So, collect_river_data needs to learn how to collect data from https://waterservices.usgs.gov/

@douglatornell douglatornell added enhancement New feature or request Workers labels Jan 4, 2023
@douglatornell douglatornell added this to the v22.1 milestone Jan 4, 2023
@codecov
Copy link

codecov bot commented Jan 4, 2023

Codecov Report

Merging #143 (9e399db) into main (d2e32a2) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #143      +/-   ##
==========================================
+ Coverage   73.92%   74.13%   +0.20%     
==========================================
  Files         127      127              
  Lines       16682    16805     +123     
  Branches     1183     1189       +6     
==========================================
+ Hits        12333    12458     +125     
+ Misses       4299     4297       -2     
  Partials       50       50              
Flag Coverage Δ
unittests 74.13% <100.00%> (+0.20%) ⬆️

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

Impacted Files Coverage Δ
nowcast/next_workers.py 97.91% <100.00%> (+0.01%) ⬆️
nowcast/workers/collect_river_data.py 98.93% <100.00%> (+1.06%) ⬆️
tests/test_next_workers.py 99.33% <100.00%> (+0.25%) ⬆️
tests/workers/test_collect_river_data.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

monkeypatch has a more explicit API, and is less magical than
unittest.mock.patch.
Make calculation function specific to ECCC river observation CSV files in
preparation for addition of REST query function for USGS rivers.
httpx_mock pytest fixture for unit tests.
Because production tests show that values are not available at PST time when
[collect|download]_weather 06 runs.
@douglatornell
Copy link
Member Author

Successfully tested in production on skookum.

@douglatornell douglatornell merged commit 848650a into main Jan 10, 2023
@douglatornell douglatornell deleted the add-usgs-rivers branch January 10, 2023 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Workers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant