-
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
add_year()
as implemented results in scenario errors
#578
Comments
#579 implements an immediate solution |
@behnam-zakeri and @khaeru can you please outline the steps necessary to implement the eventual solution? |
That branch ( Because all that was unrelated to any bug, I don't know what the cause of the present bug is, and thus no, I can not say how it should be fixed without further investigation or details. P.S. I also don't know whether, or how, the branch in the fork differs from the one in this repo. |
What specifically characterizes "aligned"? How specifically are data in the resulting scenarios "misaligned"?
What informs this belief? Does the branch code result in parameters (those mentioned above) aligned an the expected way, or is it simply that certain large scenarios produce expected outputs for some reported quantities? Added the "awaiting info" label because this information is necessary to write tests, whether on #494 or elsewhere. |
To follow up here, and any further clarification would be useful from @OFR-IIASA if needed.
The data is misaligned in the sense that technoeconomic parameters (e.g.,
Apart from personal discussions, the version on that branch was applied in a different study and appears based on a simple smoke test to perform as expected. Here a 5-year version of a model (light blue) aligns with the 1-year version of that same model (yellow line) in a high-carbon tax scenario. For a different version of the model, the 5-year version results as one might expect (orange line). The current version of This implies that there are certain technologies/updates in the second model version than the first which result in the behavior seen, however it is still unexpected behavior. |
Thanks @gidden and @khaeru for the notes, and sorry for the delay; I'm catching up after return from the leave. There are a few points here that I mention:
|
Observation: Using
add_year()
on the current main branch results in scenarios with misalignedinput
,output
andtechnical_lifetime parameters
. This can result in completely unexpected results. Below, for example, is the result of a high-carbon-tax scenario applied to an existing 5-year timestep model and the same model after usingadd_year()
to add 1-year timesteps in the first 5-year period.(this is an updated image originally published in a comment below but is relevant for new readers of this issue)
There is a believed to be correctly working version on this branch.
Immediate solution: Raise a
NotImplementedError
inmain
's implementationEventual solution: Migrate the correctly-working version into the
main
branch.The text was updated successfully, but these errors were encountered: