From 09252c8b85b097ed50a7383cb05585f8269b02d0 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Wed, 7 Aug 2024 11:38:09 +0200 Subject: [PATCH] Add initial_activity_up in .ldv.constraint_data() --- message_ix_models/model/transport/ldv.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/message_ix_models/model/transport/ldv.py b/message_ix_models/model/transport/ldv.py index 530c25987d..15de468768 100644 --- a/message_ix_models/model/transport/ldv.py +++ b/message_ix_models/model/transport/ldv.py @@ -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(