Skip to content

Commit

Permalink
Merge pull request #957 from jdebacker/fix_baseline_spend
Browse files Browse the repository at this point in the history
Merging
  • Loading branch information
rickecon authored Aug 5, 2024
2 parents 19c90fc + 64d690c commit e799452
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ogcore/TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,12 @@ def run_TPI(p, client=None):
D_f = np.zeros(p.T + p.S)
else:
if p.baseline_spending:
TR = TRbaseline
G = Gbaseline
G[p.T :] = ss_vars["Gss"]
TR = np.concatenate(
(TRbaseline[: p.T], np.ones(p.S) * ss_vars["TR_ss"])
)
G = np.concatenate(
(Gbaseline[: p.T], np.ones(p.S) * ss_vars["Gss"])
)
else:
TR = p.alpha_T * Y
G = np.ones(p.T + p.S) * ss_vars["Gss"]
Expand Down

0 comments on commit e799452

Please sign in to comment.