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

Preprocess Hyfeature channel connectivity, forcing, t0, hybrid routing network. #594

Merged
merged 7 commits into from
Nov 29, 2022

Conversation

kumdonoaa
Copy link
Contributor

@kumdonoaa kumdonoaa commented Nov 22, 2022

A unit test for hyfeature network with hybrid channel routing feature (MC and Diffusive routing) was created. First, it updated/created preprocess functions that build hyfeature channel connectivity, lateral flow dataframe, coastal boundary dataframe, t0, and channel connections for hybrid channel routing. Second, necessary domain and channel forcing files were prepared under t-route/test/unit_test_hyfeature/. With configuration file unittest_hyfeature.yaml under the folder, it successfully ran for one upstream reach by MC and two downstream reaches by diffusive routing.

Additions

Removals

Changes

Testing

  1. Under t-route/test/unit_test_hyfeature/
    python3 -m nwm_routing -V4 -f unittest_hyfeature.yaml

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 previously approved these changes Nov 28, 2022
supernetwork_parameters["columns"] = routelink_attr
supernetwork_parameters["waterbody_null_code"] = -9999
supernetwork_parameters["terminal_code"] = 0
supernetwork_parameters["waterbody_null_code"] = -9999
Copy link
Contributor

Choose a reason for hiding this comment

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

This line appears to be redundant (see L124).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I just removed it.

@kumdonoaa kumdonoaa merged commit 4b17ac7 into NOAA-OWP:master Nov 29, 2022
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