-
Notifications
You must be signed in to change notification settings - Fork 149
fix and update: eca_san_salvador application within the script folder #1086
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
fix and update: eca_san_salvador application within the script folder #1086
Conversation
|
Thanks for the updating of the script @rabinatwayana ! Can you quickly explain why the cover in |
|
Thanks a lot Rabina! The context for this PR is that the team at UNU-EHS like to use the San Salvador case study for teaching, but the case study doesn't run on more recent versions of CLIMADA due to the issue that Rabina raises. The issue to the Cover column was discovered during the fix, possibly CLIMADA changed how it treated zero-valued covers at some point. So this changes the Cover to be the value of the exposure (500 everywhere). One other thing – the Jenkins pre-commit hook is failing here, and I can't interpret the error. Is it because something is wrong with black-jupyter hook, or is it because Jenkins can't commit its changes when the pull request comes from a fork? |
|
I understand the point, thanks updating the manuscript. Can you please show the issue with the cover? Does putting the cover to the value of the exposure give the same results as before? |
Co-authored-by: Lukas Riedel <34276446+peanutfun@users.noreply.github.com>
|
Hi Chahank, San_Salvador_Parametric_existing_in_develop_branch San_Salvador_Parametric_result_with_existing_cover_value_with_0.ipynb San_Salvador_Parametric_result_after_updateing_cover_value_to_500 Please let me know if it is fine or if you want to make any changes or do other tests. |
|
Dear @rabinatwayana , Thank you for the notebooks, the results look the same with the full cover. It would be good to know why changing the cover to 500 gave the same result as previously. @ChrisFairless I think it is important for your future ECA studies that you understand this. |
|
@ChrisFairless we are considering moving this script to climada petals. Would that be fine for you? |
|
re: changing the cover (That's not how I would have implemented it: I would have left the asset values unchanged and set the cover to 500, but whatever, this PR is to fix the bug, not to change the analysis.) In the past this must have worked, and my assumption is that when the notebook was created, CLIMADA treated 0 cover and NA cover as equivalent. Running the code now, it treats zero cover as exactly that: uninsured. I'm not very interested in finding out when and where that change was made, because I think this is now the correct behaviour. But it means that the Excel file needs to be updated to preserve its intended behaviour of generating an EP curve when each property is insured with 500 USD. That means setting the value and the cover of each asset to 500 USD. |
|
Re: moving to CLIMADA Petals Part of our upcoming work at UNU includes proposing and updating the Entity Excel file templates (and reworking Excel inputs in general) to align with the upcoming changes in the Measures and OptionsAppraisal modules. Once that happens the San Salvador notebook will either need to be retired, updated or replaced, so that would be a good time to discuss its future. |
|
Thanks @ChrisFairless for all the clarifications! That is all good for me then. |
chahank
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.
Thanks for the quick update!

Changes proposed in this PR:
Updates to the eca_san_salvador application within the script folder:
Supporting Resources:
File conversion from .mat to .hdf5 can be performed in two ways:
1. Manually (link)
2. Using an older version of CLIMADA (link)
This PR fixes #1085
PR Author Checklist
develop)PR Reviewer Checklist