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 GitHub action to run V4 #695

Merged
merged 10 commits into from
Nov 15, 2023

Conversation

shorvath-noaa
Copy link
Contributor

Updates to github action to perform more test runs. In addition to LowerColorado_TX V3, this will now run V4 on NHD, V4 on HYFeatures, and V4 on HYFeatures with all data assimilation turned off.

Additions

test/LowerColorado_TX_v4/test_AnA_V4_HYFeature_noDA.yaml

  • Same as test_AnA_V4_HYFeature.yaml, but with DA turned off

Removals

Changes

.github/workflows/ubuntu-latest.yml

  • Run V3 Test
  • Run V4 Test on NHD
  • Run V4 Test on HYFeature
  • Run V4 Test on HYFeature without DA

test/LowerColorado_TX_v4/test_AnA_V4_HYFeature.yaml

  • Changed dx: parameter from lengthkm to length_m
  • Changed default output file type from .pkl to .nc

Testing

  1. These will be triggered on all new pull requests and pushes to master branch

Screenshots

Notes

Todos

Checklist

  • PR has an informative and human-readable title
  • Changes are limited to a single goal (no scope creep)
  • Code can be automatically merged (no conflicts)
  • Code follows project standards (link if applicable)
  • Passes all existing automated tests
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future todos are captured in comments
  • Visually tested in supported browsers and devices (see checklist below 👇)
  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
  • Reviewers requested with the Reviewers tool ➡️

Testing checklist

Target Environment support

  • Windows
  • Linux
  • Browser

Accessibility

  • Keyboard friendly
  • Screen reader friendly

Other

  • Is useable without CSS
  • Is useable without JS
  • Flexible from small to large screens
  • No linting errors or warnings
  • JavaScript tests are passing

@shorvath-noaa shorvath-noaa marked this pull request as ready for review November 14, 2023 19:50
@shorvath-noaa
Copy link
Contributor Author

shorvath-noaa commented Nov 14, 2023

@kumdonoaa @JurgenZach-NOAA @AminTorabi-NOAA this is ready for review. It triggered itself and all tests passed. I made some changes to the test config files for LowerColorado (turned off all output parameters). I also updated how the rfc_lake_gage_crosswalk dataframe is created. The crosswalk is now just stored in HYFeaturesNetwork.py, so t-route no longer needs to read the .csv file. I also updated the check for lite_restart output in main.

read this info from a file (e.g., a .csv file). This will not be needed once this information
is added to the hydrofabric.
"""
rfc_dict = {'rfc_gage_id': {347987: 'KNFC1', 361273: 'IRGC1', 371555: 'HEYO2', 389804: 'CNLO2',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this will eventually be an external resource, could we make the temporary fix also an external file and import(e.g., from rfc_lake_gage_crosswalk import rfc_dict), rather than baking the dictionary into this file? It would be easy for this to linger for a while.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes have been made.

@shorvath-noaa shorvath-noaa merged commit c4aa0dd into NOAA-OWP:master Nov 15, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants