Skip to content

Add first draft CONUS test cases#79

Closed
sclaw wants to merge 179 commits intomasterfrom
nhf-routing
Closed

Add first draft CONUS test cases#79
sclaw wants to merge 179 commits intomasterfrom
nhf-routing

Conversation

@sclaw
Copy link

@sclaw sclaw commented Feb 24, 2026

This PR adds a new test to the nhf test suite with a CONUS-wide dataset. This test runs t-route for a portion of the 2022 US summer floods over all of CONUS. Channel forcing data is retrieved from National Water Model 3.0 retrospective data. This test is more a test of the nhf data than of t-route code. For that reason, these tests should not be run in the default pytest test set. The test_nhf_conus function has therefore been marked as an integration test.

Additions

  • test/nhf/conus/make_forcing.py
  • test/nhf/conus/README.md
  • test/nhf/test_conus.py

Removals

  • None

Changes

  • None

Testing

  1. Issues with nhf 0.4.1 prevented t-route from running on the test dataset.

Screenshots

Notes

  • Due to the large size of both the CONUS nhf and the channel forcing data for t-route, no data has been included in this PR. Users should copy nhf to their local machine and follow the instructions in test/nhf/conus/README.md to create the dataset and setup the test directory.
  • One of the existing tests was failing, and no attempt has been made to resolve it. test_hyfeatures_network.py fails because lake_id field is not available. Tadd noted this here: patch: fixed broken lower colorado test #31. This test should be removed. Line 138 (nexus) also broken for that test. yuqiong e3a4998

Todos

  • Issues with nhf 0.4.1 prevented t-route from running on the test dataset. Once the issues are resolved, the simulation time-window may be adjusted to better match event start and end times.
  • More tests are needed to determine if the t-route run for this is successful, once the nhf 0.4.1 issue is resolved.

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 ➡️

ngwpcareg and others added 30 commits October 8, 2024 12:02
customization of t-route's logging class to comply with logging requirements set in NGWPC-3888

See merge request NGWPC/nwm-ngen/t-route!1
Ngwpc 3888

See merge request NGWPC/nwm-ngen/t-route!2
Text file containing repository version number and date

See merge request NGWPC/nwm-ngen/t-route!3
changes to make t-route compatible with v2.2 gpkg

See merge request NGWPC/nwm-ngen/t-route!4
Development Branch Merge to release-candidate branch for version text file

See merge request NGWPC/nwm-ngen/t-route!5
…didate'

Updated version file for Release rc-1.0.0

See merge request NGWPC/nwm-ngen/t-route!6
Release Candidate Branch Merge to main for Release 1.0.0

See merge request NGWPC/nwm-ngen/t-route!7
update version file for release 1.0.0

See merge request NGWPC/nwm-ngen/t-route!8
Release 1.0.0 Merge to development

See merge request NGWPC/nwm-ngen/t-route!9
Added RTX licensing verbiage

See merge request NGWPC/nwm-ngen/t-route!11
Merge development into release-candidate for release rc-1.1.0

See merge request NGWPC/nwm-ngen/t-route!12
Merge update_version_file_rc-1.1.0 into release-candidate for release rc-1.1.0

See merge request NGWPC/nwm-ngen/t-route!13
Merge release-candidate into development for release rc-1.1.0

See merge request NGWPC/nwm-ngen/t-route!14
Merge release-candidate into master for release 1.1.0

See merge request NGWPC/nwm-ngen/t-route!15
Merge update_version_file_1.1.0 into master for release 1.1.0

See merge request NGWPC/nwm-ngen/t-route!16
Merge master into development for release 1.1.0

See merge request NGWPC/nwm-ngen/t-route!17
idtodd and others added 29 commits October 7, 2025 12:33
Drive NGEN T-Route through BMI (NGWPC-7700)
Remove nexus file read in BMI implementation (NGWPC-8769)
Unify pydantic minimum version to currently latest patch release of 2.11 (2.11.9)
* tests: added test case for conecuh river test case (#57)

* feat: created outline of structure needed for v5 routing

* feat: created outline of structure needed for v5 routing

* tmp: read geo file and preprocessing network

* patch: updated domain gpkg file, finished preprocessing in init

* tmp: test

* added lateral flow functions

* tests: added flowpath scaling test
* tests: added test case for conecuh river test case (#57)

* feat: created outline of structure needed for v5 routing

* feat: created outline of structure needed for v5 routing

* tmp: read geo file and preprocessing network

* patch: updated domain gpkg file, finished preprocessing in init

* tmp: test

* added lateral flow functions

* tests: added flowpath scaling test

* feat: troute connections are working

* feat: made internals of the network testable

* patch: missing trailing ticks in readme

* added python command to readme
@sclaw sclaw closed this Feb 24, 2026
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.