Skip to content

Commit

Permalink
bugfix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hboisgon committed Oct 18, 2024
1 parent a9c4283 commit 809db48
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 7 deletions.
8 changes: 7 additions & 1 deletion examples/linux64/wflow_piave_clip/wflow_sbm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ canopystorage = "canopystorage"
glacierstore = "glacierstore"

[input.vertical]
alpha_h1 = "alpha_h1"
altitude = "wflow_dem"
c = "c"
cf_soil = "cf_soil"
Expand Down Expand Up @@ -101,6 +100,13 @@ glacierfrac = "wflow_glacierfrac"
g_cfmax = "G_Cfmax"
g_tt = "G_TT"
g_sifrac = "G_SIfrac"
kc = "kc"
alpha_h1 = "alpha_h1"
h1 = "h1"
h2 = "h2"
h3_high = "h3_high"
h3_low = "h3_low"
h4 = "h4"

[state.lateral.river]
q = "q_river"
Expand Down
Binary file modified examples/linux64/wflow_piave_subbasin/staticmaps.nc
Binary file not shown.
8 changes: 7 additions & 1 deletion examples/linux64/wflow_piave_subbasin/wflow_sbm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ canopystorage = "canopystorage"
glacierstore = "glacierstore"

[input.vertical]
alpha_h1 = "alpha_h1"
altitude = "wflow_dem"
c = "c"
cf_soil = "cf_soil"
Expand Down Expand Up @@ -101,6 +100,13 @@ glacierfrac = "wflow_glacierfrac"
g_cfmax = "G_Cfmax"
g_tt = "G_TT"
g_sifrac = "G_SIfrac"
kc = "kc"
alpha_h1 = "alpha_h1"
h1 = "h1"
h2 = "h2"
h3_high = "h3_high"
h3_low = "h3_low"
h4 = "h4"

[state.lateral.river]
q = "q_river"
Expand Down
Binary file modified examples/wflow_piave_clip/staticmaps.nc
Binary file not shown.
8 changes: 7 additions & 1 deletion examples/wflow_piave_clip/wflow_sbm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ canopystorage = "canopystorage"
glacierstore = "glacierstore"

[input.vertical]
alpha_h1 = "alpha_h1"
altitude = "wflow_dem"
c = "c"
cf_soil = "cf_soil"
Expand Down Expand Up @@ -101,6 +100,13 @@ glacierfrac = "wflow_glacierfrac"
g_cfmax = "G_Cfmax"
g_tt = "G_TT"
g_sifrac = "G_SIfrac"
kc = "kc"
alpha_h1 = "alpha_h1"
h1 = "h1"
h2 = "h2"
h3_high = "h3_high"
h3_low = "h3_low"
h4 = "h4"

[state.lateral.river]
q = "q_river"
Expand Down
Binary file modified examples/wflow_piave_subbasin/staticmaps.nc
Binary file not shown.
8 changes: 7 additions & 1 deletion examples/wflow_piave_subbasin/wflow_sbm.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ canopystorage = "canopystorage"
glacierstore = "glacierstore"

[input.vertical]
alpha_h1 = "alpha_h1"
altitude = "wflow_dem"
c = "c"
cf_soil = "cf_soil"
Expand Down Expand Up @@ -101,6 +100,13 @@ glacierfrac = "wflow_glacierfrac"
g_cfmax = "G_Cfmax"
g_tt = "G_TT"
g_sifrac = "G_SIfrac"
kc = "kc"
alpha_h1 = "alpha_h1"
h1 = "h1"
h2 = "h2"
h3_high = "h3_high"
h3_low = "h3_low"
h4 = "h4"

[state.lateral.river]
q = "q_river"
Expand Down
5 changes: 2 additions & 3 deletions tests/test_model_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,7 @@ def test_setup_allocation_surfacewaterfrac(example_wflow_model, tmpdir):

# Use the method without gwbodies and ncfrac and waterareas from wflow
example_wflow_model.setup_allocation_areas(
admin_bounds_fn="gadm_level2",
min_area=30,
waterareas_fn="gadm_level2",
)
example_wflow_model.setup_allocation_surfacewaterfrac(
gwfrac_fn="lisflood_gwfrac",
Expand Down Expand Up @@ -1004,7 +1003,7 @@ def test_setup_non_irrigation(example_wflow_model, tmpdir):
.isel(latitude=32, longitude=26)
.values
)
assert int(np.mean(dom_gross_vals) * 100) == 89
assert int(np.mean(dom_gross_vals) * 100) == 136
popu_val = (
example_wflow_model.grid["population"].isel(latitude=32, longitude=26).values
)
Expand Down

0 comments on commit 809db48

Please sign in to comment.