Skip to content

Commit

Permalink
fix self ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Oct 11, 2023
1 parent acb4c92 commit 259efdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogcore/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def compute_default_params(self):
self.g_n = np.zeros(self.T + self.S)
surv_rate = np.ones_like(self.rho) - self.rho
surv_rate1 = np.ones((self.S,)) # prob start at age S
surv_rate1[1:] = np.cumprod(self.surv_rate[-1, :-1], dtype=float)
surv_rate1[1:] = np.cumprod(surv_rate[-1, :-1], dtype=float)
# number of each age alive at any time
omega_SS = np.ones(self.S) * surv_rate1
self.omega_SS = omega_SS / omega_SS.sum()
Expand Down

0 comments on commit 259efdf

Please sign in to comment.