Skip to content

Commit

Permalink
MNT: Add test for streamcat.
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Apr 6, 2024
1 parent ceda690 commit 700f3fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_pynhd.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ def trib():
return WaterData("nhdflowline_network").byid("comid", comids.nhdplus_comid.tolist())


def test_streamcat():
nhd_area = pynhd.streamcat("fert", comids=13212248)
assert_close(nhd_area["FERTWS"].item(), 14.358)


def test_epa():
data = pynhd.epa_nhd_catchments(9533477, "curve_number")
assert_close(data["curve_number"].mean(axis=1), 75.576)
Expand Down

0 comments on commit 700f3fb

Please sign in to comment.