Skip to content

Commit

Permalink
Merge branch 'fix-test_subgrid_rivers' of https://github.com/Deltares…
Browse files Browse the repository at this point in the history
…/hydromt_sfincs into regular_subgrid
  • Loading branch information
roeldegoede committed Feb 23, 2024
2 parents 7113c3b + 300d41e commit 4f91249
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_1model_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,14 @@ def test_subgrid_rivers(mod):
gdf_riv = mod.data_catalog.get_geodataframe(
"rivers_lin2019_v1", geom=mod.region, buffer=1e3
)

# create dummy depths for the river based on the width
rivdph = gdf_riv["rivwth"].values / 100
rivdph[-1] = np.nan
gdf_riv["rivdph"] = rivdph

# set the depth of the river with "COMID": 21002062 to nan
gdf_riv.loc[gdf_riv["COMID"] == 21002062, "rivdph"] = np.nan

sbg_org = mod.subgrid.copy()

mod.setup_subgrid(
Expand Down

0 comments on commit 4f91249

Please sign in to comment.