Skip to content

Commit 8e15a01

Browse files
authored
Clarify end of update function with comments
Added comments to clarify the end of the update function.
1 parent a49a0d4 commit 8e15a01

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

book/2_modelling_advanced_ewatercycle/hbv_bmi.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ def update(self) -> None:
149149
# Advance the model time by one step
150150
self.current_timestep += 1
151151

152+
###############################################################################
153+
154+
"End of the update function!"
155+
156+
###############################################################################
157+
152158
def set_pars(self, par) -> None:
153159
self.I_max = par[0] # maximum interception
154160
self.Ce = par[1] # Ea = Su / (sumax * Ce) * Ep
@@ -499,4 +505,4 @@ def load_var(ncfile: str | Path, varname: str) -> xr.DataArray:
499505
if data[varname].attrs['units'] == 'kg m-2 s-1':
500506
data[varname] = data[varname] * 24 * 3600 #mm/day
501507
#data[varname].attrs['units'] = 'mm d-1' TODO, fix.
502-
return data[varname]
508+
return data[varname]

0 commit comments

Comments
 (0)