Skip to content

Commit

Permalink
put self._inlet_migr in the loop based on Katherine suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
roya sahraei committed Oct 23, 2024
1 parent 2b99166 commit eb5fa70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions brie/brie_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,11 +1230,12 @@ def update(self):
] = len(
self._inlet_idx
) # number of inlets
self._inlet_migr[
np.fix(self._time_index / self._dtsave).astype(int) - 1
] = np.mean(migr_up / self._dt)

if len(self._inlet_idx) != 0:
self._inlet_migr[
np.fix(self._time_index / self._dtsave).astype(int) - 1
] = np.mean(migr_up / self._dt)

self._inlet_Qs_in[
np.fix(self._time_index / self._dtsave).astype(int) - 1
] = np.mean(Qs_in)
Expand Down

0 comments on commit eb5fa70

Please sign in to comment.