Skip to content

Commit

Permalink
Fix bug in effTime time integration scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodirkes committed Feb 26, 2024
1 parent 5668d7c commit 2814668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hemtracer/hemolysis_model/hemolysis_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ def _compute_HI5(self, t: NDArray, G: NDArray) -> NDArray:
dt = np.diff(t)
C_tau_beta = self._C * tau**self._beta

for i in range(1, len(t)):
for i in range(1, len(t)-1):
t_eff = (IH[i-1] / C_tau_beta[i-1])**(1/self._alpha)
IH[i] = C_tau_beta[i] * (t_eff + dt[i-1])**self._alpha
IH[-1] = IH[-2]

return IH

Expand Down

0 comments on commit 2814668

Please sign in to comment.