Skip to content

Commit

Permalink
set_friction_vegetation_values fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Golnesa committed Apr 22, 2024
1 parent 71fcc77 commit 5c916bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threedigrid_builder/grid/cross_section_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ def set_friction_vegetation_values(
):
"""Convert friction and vegetation properties from list into arrays, if available,
and add to yz"""
if friction_values is not None:
if friction_values:
fric = np.array([float(x) for x in friction_values.split(" ")])
yz[:-1, 2] = fric

if vegetation_drag_coefficients is not None:
if vegetation_drag_coefficients:
veg_stemden = np.array([float(x) for x in vegetation_stem_densities.split(" ")])
veg_stemdia = np.array([float(x) for x in vegetation_stem_diameters.split(" ")])
veg_hght = np.array([float(x) for x in vegetation_heights.split(" ")])
Expand Down

0 comments on commit 5c916bc

Please sign in to comment.