Skip to content
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

Merged
merged 8 commits into from
Nov 1, 2022
Merged

Interpolation fix #646

merged 8 commits into from
Nov 1, 2022

Conversation

bpbond
Copy link
Member

@bpbond bpbond commented Oct 31, 2022

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.

diff

@bpbond bpbond requested a review from kdorheim October 31, 2022 20:23
@bpbond bpbond linked an issue Oct 31, 2022 that may be closed by this pull request
@bpbond
Copy link
Member Author

bpbond commented Oct 31, 2022

Graph out to 2300

diff

@@ -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
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interpolation behavior
2 participants