time_order
KeyError in storage modeling
#858
-
Dear MESSAGE team, while trying to add storage in my model by following test_feature_storage. I received an error message while importing the attached scenario.add_set("time_order", df) The error message is:
Question: I am using Some side information: After commenting out the single line of code importing the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @SongminYu, thanks for raising this question. Apart from this, I must admit I don't fully understand if your excel sheet looks fine, maybe @behnam-zakeri (who developed this feature) can confirm. In the test file, Lastly, I'd like to note that we have a tutorial on seasonality, but this doesn't mention |
Beta Was this translation helpful? Give feedback.
-
@SongminYu and @glatterf42 thank you for the discussion.
|
Beta Was this translation helpful? Give feedback.
@SongminYu and @glatterf42 thank you for the discussion.
time_order
is a MESSAGEix parameter for defining the order of sub-annual time slices at a temporal level. For example, if you have 4 time slices defined at the level of "season", you can specify which one is the first, second, third, and fourth. The order should be given using an integer. This feature is only used in storage equations. So, when a model has sub-annual time slices but does not use storage, such as "Westeros_seasonality.ipynb", the user does not need to specifytime_order
. This parameter has 2 index sets, namely,lvl_temporal
andtime
, value, and unit. The unit can be "-", because the order of time slices has no unit.