-
Notifications
You must be signed in to change notification settings - Fork 46
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
Interpolation fix #646
Interpolation fix #646
Conversation
Remove old `ffi()`, etc. functions; see #643
@@ -31,7 +31,7 @@ find ./inst/input -name "*.ini" -print0 | xargs -0 -n1 $HECTOR | |||
|
|||
# Make sure the model handles year changes | |||
echo "---------- Running: year changes ----------" | |||
sed 's/startDate=1745/startDate=1740/' $INPUT/hector_ssp245.ini > $INPUT/hector_ssp245_time.ini | |||
sed 's/startDate=1745/startDate=1746/' $INPUT/hector_ssp245.ini > $INPUT/hector_ssp245_time.ini |
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.
Why is it 1746 instead of 1745?
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.
The test used to change 1745 to 1740, but now that interpolation is disallowed we have to use a year that appears in the emissions inputs (or else the test bombs with an "interpolation not allowed" error). So changed to 1746.
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.
Gottcha that makes sense thanks!
OK #639 has too many changes in it to unambiguously evaluate model behavior changes, so:
This PR isolates the issue we know we need to fix — #643 . Basically, the interpolated nature of the LUC emissions and uptake time series means that we can emit or take up more/less than specified by the input data.
NOTE: currently both the old-new test (to easily see errors) and the post-LUC-pulse test (because not taking out C proportionately) are disabled.
The former needs to be re-enabled before merging.