-
Notifications
You must be signed in to change notification settings - Fork 164
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
nocc2020 switch added #277
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check whether the solution via dollar condition as suggested would work too.
/ y2025, y2030, y2035, y2040, | ||
y2045, y2050, y2055, y2060, y2065, y2070, y2075, y2080, y2085, y2090, | ||
y2095, y2100, y2105, y2110, y2115, y2120, y2125, y2130, y2135, y2140, | ||
y2145, y2150 / | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this set is not needed and a dollar condition could be used instead.
$if "%c14_yields_scenario%" == "nocc" f14_yields(t_all,j,kve,w) = f14_yields("y1995",j,kve,w); | ||
$if "%c14_yields_scenario%" == "nocc2020" f14_yields(t_nocc2020,j,kve,w) = f14_yields("y2020",j,kve,w); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe a dollar condition should be a solution here setting the values as wanted. Haven't tested the suggestion below but something like that should be it:
$if "%c14_yields_scenario%" == "nocc2020" f14_yields(t_nocc2020,j,kve,w) = f14_yields("y2020",j,kve,w); | |
$if "%c14_yields_scenario%" == "nocc2020" f14_yields(t_all,j,kve,w)$(ord(t_all) > ord("y2020")) = f14_yields("y2020",j,kve,w); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, I'll work in the dollar sign approach.
is it now low or medium risk? It can't be both as suggested by the labels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine in general. I propose the following change to make it more consistent :
- Florian introduced a scalar
sm_fix_ssp2
to keep our historical behavior consistent, maybe you can use the same switch here? By replacing your hard-coded 2020 instances withsm_fix_SSP2
. It helps in two ways:
- Everytime we update
sm_fix_SSP2
the same is reflected in in you "holding constant after xx year" philosophy - Avoids hard-coding a number in
$
checks
- Additionally, you can rename
nocc2020
tohistcc
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go 🚀
🐦 Purpose of this PR 🐦
🔧 Checklist for PR creator 🔧
Minor changes in scenario_config.csv, default.cgf, and several realizations.
CHANGELOG.md
gams main.gms action=c
in model folder for testing).goxygen
is okay (usegoxygen::goxygen()
for testing).magpie4
R library for post processing of model output (ideally backward compatible).NA
🚨 Checklist for RSE reviewer 🚨 -- @tscheypidi
CHANGELOG
is updated correctly🚨 Checklist for MAgPIE reviewer 🚨 -- @abhimishr
CHANGELOG
is updated correctly