Skip to content

Commit 064a643

Browse files
author
Golnesa
committed
name update
1 parent 32808fb commit 064a643

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

threedigrid_builder/base/lines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class Line:
4040
frict_value2: float # For 1D-2Dgw: resistance factor-in (hydr. cond / thickness)
4141
veg_coef1: float # the product of vegetation properties (except height)
4242
veg_coef2: float # the product of vegetation properties (except height)
43-
veg_hght1: float # the vegetaion height
44-
veg_hght2: float # the vegetaion height
43+
veg_height1: float # the vegetaion height
44+
veg_height2: float # the vegetaion height
4545
cross_weight: float # For 1D-2Dgw: the exchange length (tables: cross_width)
4646
discharge_coefficient_positive: float
4747
discharge_coefficient_negative: float

threedigrid_builder/grid/cross_section_locations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ def apply_to_lines(self, lines, channels, extrapolate=False):
4747
- frict_value2: the friction value of the second cross section location
4848
- veg_coef1: the product of vegetation properties of the first cross section location (except height)
4949
- veg_coef2: the product of vegetation properties of the second cross section location (except height)
50-
- veg_hght1: the vegetation height of the first cross section
51-
- veg_hght2: the vegetation height of the second cross section
50+
- veg_height1: the vegetation height of the first cross section
51+
- veg_height2: the vegetation height of the second cross section
5252
- invert_level_start_point: 'reference_level' interpolated at the line end
5353
- invert_level_end_point: 'reference_level' interpolated at the line start
5454
- dpumax: the largest of the two invert levels
@@ -86,10 +86,10 @@ def apply_to_lines(self, lines, channels, extrapolate=False):
8686
* self.vegetation_drag_coefficient[idx2]
8787
)
8888
lines.veg_coef2[np.isnan(lines.veg_coef2)] = 0.0
89-
lines.veg_hght1 = self.vegetation_height[idx1]
90-
lines.veg_hght1[np.isnan(lines.veg_hght1)] = 0.0
91-
lines.veg_hght2 = self.vegetation_height[idx2]
92-
lines.veg_hght2[np.isnan(lines.veg_hght2)] = 0.0
89+
lines.veg_height1 = self.vegetation_height[idx1]
90+
lines.veg_height1[np.isnan(lines.veg_height1)] = 0.0
91+
lines.veg_height2 = self.vegetation_height[idx2]
92+
lines.veg_height2[np.isnan(lines.veg_height2)] = 0.0
9393

9494
# Compute invert levels and start and end
9595
lines.invert_level_start_point = compute_bottom_level(

threedigrid_builder/interface/gridadmin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ def write_lines(self, lines: Lines, cross_sections):
444444
self.write_dataset(group, "frict_value2", lines.frict_value2)
445445
self.write_dataset(group, "veg_coef1", lines.veg_coef1)
446446
self.write_dataset(group, "veg_coef2", lines.veg_coef2)
447-
self.write_dataset(group, "veg_hght1", lines.veg_hght1)
448-
self.write_dataset(group, "veg_hght2", lines.veg_hght2)
447+
self.write_dataset(group, "veg_height1", lines.veg_height1)
448+
self.write_dataset(group, "veg_height2", lines.veg_height2)
449449
self.write_dataset(group, "cross_weight", lines.cross_weight)
450450
self.write_dataset(
451451
group, "hydraulic_resistance_in", lines.hydraulic_resistance_in

threedigrid_builder/tests/test_cross_section_locations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ def test_apply_to_lines(channels, channel_lines, locations):
171171
assert_equal(channel_lines.frict_value2, [30.0, 0.02, 35.0, 35.0, 35.0, 0.03, 0.03])
172172
assert_almost_equal(channel_lines.veg_coef1, [0.5, 0.0, 0.2, 0.2, 0.2, 0.0, 0.0])
173173
assert_almost_equal(channel_lines.veg_coef2, [0.5, 0.0, 0.15, 0.15, 0.15, 0.0, 0.0])
174-
assert_almost_equal(channel_lines.veg_hght1, [0.2, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0])
175-
assert_almost_equal(channel_lines.veg_hght2, [0.2, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0])
174+
assert_almost_equal(channel_lines.veg_height1, [0.2, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0])
175+
assert_almost_equal(channel_lines.veg_height2, [0.2, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0])
176176
assert_almost_equal(
177177
channel_lines.cross_weight, [1.0, 1.0, 1.0, 0.65, 0.0, 1.0, 1.0]
178178
)

0 commit comments

Comments
 (0)