-
Notifications
You must be signed in to change notification settings - Fork 169
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
added switch to turn off yield calib #609
added switch to turn off yield calib #609
Conversation
I see this only a draft PR so you might have had that in mind anyway, but a short note in the changelog would be appreciated :) |
Thank you Pascal. I added an entry in the changelog. One question is left for me: Do I need to change the scenario_config.csv ? |
I'm not sure, better ask someone else, I'm not using the scenario_config.csv |
I made the change in the FSEC scenario because it explicitly uses the penalty_apr_22 crop realization in the scenario file. When using this realization it is recommended to still have yield calibration on. |
Another question: How can I change the label? (Low risk, medium risk, high risk)? @FelicitasBeier and I think it is a Low risk PR. |
One more question: Is think that I do not need to change magpie4 R library for this change, is that correct? @pfuehrlich-pik |
Actually when reading the description of the different risk levels, I'm not sure anymore if this is really low risk. It is a change in the default settings. @FelicitasBeier @pfuehrlich-pik what do you think? |
I did a default test run and confirmed that no calibration is performed with default settings now. (Also in the case of a the f14_yld_[..].csv in the input directory) I also started test runs with |
Unfortunately all test runs except "weeklyTests_singleTimeStep" failed. The default run worked as said before. I'm now trying to figure out why the test runs failed. In case you want to have a look: |
The test failed because my home directory was full. Tests are rerunning now here |
In terms of test runs i get this warning from the tests: |
Since all points are checked, from my side the PR is ready to review. |
Since we want the yield calibration to be off by default, this should also apply for the general scenario config. The FSEC one needed to be adjusted because we use the penalty_apr22 crop realization there. |
Interesting that it also occurs in the current develop. This means it doesn't prevent this one from being merged. |
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 to me. Thanks!
I am not worried about that. I think it is conceptually and technically acceptable if some variables have no room to move and are therefor being fixed by GAMS. |
🐦 Description of this PR 🐦
Add a switch to turn off the use of yield calibration factors
🔧 Checklist for PR creator 🔧
Label pull request from the label list.
Self-review own code
magpie4
R library has been updated accordingly and backwards compatible where necessary.scenario_config.csv
has been updated accordingly (important ifdefault.cfg
has been updated)Document changes
CHANGELOG.md
goxygen::goxygen()
and verify the modified code is properly documentedPerform test runs
Rscript start.R --> "compilation check"
Rscript start.R --> "test runs"
Rscript start.R --> "test runs"
📉 Performance changes 📈
🚨 Checklist for reviewer 🚨
CHANGELOG
is updated correctly