-
Notifications
You must be signed in to change notification settings - Fork 10
Interpolate between two scenarios #1685
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
base: master
Are you sure you want to change the base?
Conversation
8fe07d1 to
654db5d
Compare
noracato
left a comment
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.
Nice work! Especially on the specs! Thank you for adding the extra spec for the API as well.
It works well as an extension of the existing code. I do think we can win some space by replacing the now many validators by introducing simple Dry validation rules. @louispt1 has been working with them a lot lately, he should be able to help you out.
Again well done!
louispt1
left a comment
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.
Apart from the one remark below and the spec for the batch endpoint I'd say it's looking good!
…dpoint specs. References #1684
Description
Adds the capability to interpolate between two scenarios with the API endpoint:
POST /api/v3/scenarios/interpolateNow if we pass a
start_scenario_idbesides the mandatoryend_yearit will interpolate using the values of the given start scenario instead of the starting values of the scenario targeted by the endpoint.Type of change
Checklist
Related Issues
Closes #1684