Skip to content

Commit

Permalink
Merge pull request #359 from nens/golnesa-variable-friction-fix
Browse files Browse the repository at this point in the history
set_friction_vegetation_values fix
  • Loading branch information
GolnesaK authored Apr 22, 2024
2 parents 0b90c13 + 5c916bc commit 2133b7b
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
@@ -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(" ")])

0 comments on commit 2133b7b

Please sign in to comment.