-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return vintage_and_active_years() for a specific technology #571
Comments
Some thoughts here:
|
The function
How about modifying this so that if |
I would suggest that whoever tackles this start by writing some tests to clarify the new expected behaviours. |
@khaeru I have extended the tests for the function |
(Text by @OFR-IIASA—thanks!)
This issue aims to summarize an ongoing discussion on ECE Slack about a new, desirable feature.
The aim of the feature is to ease the creation of technology specific parameters which correlate vintage and active years, but limited to those that are feasible given a specific technology's
technical_lifetime
.Possibilities for implementation that were discussed:
Option 1
Combine/modify two existing functionalities as suggested by @khaeru:
scen.vintage_and_active_years()
returns a dataframe with the indexyear_vtg
andyear_act
and correlates all the possible activity years within the optimization time horizon (>=firstmodelyear
) with all possible vintage years, including also vintage years prior to thefirstmodelyear
.scen.years_active()
returns a list of activity years for any given node/technology/vintage_year.The results of
scen.vintage_and_active_years()
would then be filtered based onscen.years_active()
.Note that it would be necessary to also allow for the possibility to retrieve activity years prior to
firstmodelyear
, meaning thatscen.vintage_and_active_years()
would need to be modified so that activity years <firstmodelyear
are also returned. This is necessary so that historical reporting can be carried out. Possibly a filter option is required e.g. as for the global model we report historic values from 1990 onwards.Option 2
As suggested by @behnam-zakeri and extended by @OFR-IIASA:
Option 3
Build on ScenarioInfo.yv_ya as suggested by @khaeru. This is however in
message-ix-models
, not this repo.Option 4
Build on some code used in message_data as a workaround to the fact that
duration_period_sum
[incomplete sentence?]This information can also be used to filter for example the results from
ScenarioInfo.yv_ya
based on thetechnical_lifetime
of a technology.Option 5
Make use the functionality that creates the set
map_tec_lifetime
.This is only generated as part of the solving of a scenario, but contains precisely the information required.
The text was updated successfully, but these errors were encountered: