Skip to content

Commit bfdbb39

Browse files
committed
add case of j not equal none
1 parent 32fc912 commit bfdbb39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ogcore/pensions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ def replacement_rate_vals(nssmat, wss, factor_ss, j, p):
6666
theta = (PIA * (12.0 * p.S / 80.0)) / (factor_ss * wss)
6767
if not p.baseline and p.baseline_theta:
6868
# use theta from the baseline solution
69-
theta = p.SS_theta
69+
if j is not None:
70+
theta = p.SS_theta[j]
71+
else:
72+
theta = p.SS_theta
7073
return theta
7174

7275

0 commit comments

Comments
 (0)