Skip to content

Commit

Permalink
Add initial_activity_up in .ldv.constraint_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 7, 2024
1 parent 126bdab commit 09252c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions message_ix_models/model/transport/ldv.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,15 @@ def constraint_data(context) -> Dict[str, pd.DataFrame]:
name, value=value, year_act=years, time="year", unit="-"
).pipe(broadcast, node_loc=info.N[1:], technology=constrained)

if bound == "lo":
continue

# Add initial_activity_up values allowing usage to begin in any period
name = f"initial_activity_{bound}"
data[name] = make_df(
name, value=1e6, year_act=years, time="year", unit="-"
).pipe(broadcast, node_loc=info.N[1:], technology=constrained)

# Prevent new capacity from being constructed for techs annotated
# "historical-only: True"
historical_only_techs = list(
Expand Down

0 comments on commit 09252c8

Please sign in to comment.