-
Notifications
You must be signed in to change notification settings - Fork 150
Risk Trajectory Split 2 : Interpolation Strategies #1198
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: develop
Are you sure you want to change the base?
Conversation
|
One consideration could be to put this in @chahank what do you think? |
I think this is a good idea! I would then if it is not too much work rename |
|
I think the code in itself is fine, but it is very very hard to understand what the class and methods are actually doing. I think this is because the word interpolation is used for many different type of operations. In my understanding, the "array" interpolation is supposed to represent Bayesian mixing. The "mat" inteprolation on the other hand is an interpolation between two known points. In addition, it is quite hard to comprehend what the class |
|
And thanks for splitting into separate PRs! That helps a ton. |
Co-authored-by: Chahan M. Kropf <[email protected]>
…-project/climada_python into feature/interpolation-strategies
|
@chahank I think I addressed all comments, can you do a last check and give the green light to merge? |
|
I still find the use of the word interpolation for many distinct operations confusing, but it is time to merge as the code does what it should do. |
As the Risk trajectory PR is too substantial, this is a second split.
This PR implements the concept of interpolation strategies to journey along the Risk Cube.
It:
A strategy is a triplet of callable:
exposure_interp: "how do I generate a range of given number of dates impact matrices, between present date and future date, accounting for changing exposure but constant hazard and vulnerability?"hazard_interp: "how do I interpolate between two arrays of risk metrics, the first one corresponding to present hazard and evolving exposure, and the second one to future hazard and evolving exposure, to incorporate the evolution due to the changing hazard"vulnerability_interp: same ashazard_interpbut for vulnerability.PR Author Checklist
develop)PR Reviewer Checklist