Skip to content

Commit

Permalink
ensure G and TR are T+S long
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Aug 3, 2024
1 parent 19c90fc commit e1ab01e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ogcore/TPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,9 +665,8 @@ 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 e1ab01e

Please sign in to comment.