-
Notifications
You must be signed in to change notification settings - Fork 21
Create CAT bond module #186
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
| damages = imp_subarea_evt_flt.iloc[:, subarea] | ||
|
|
||
| # Perform optimization for each subarea | ||
| result = minimize( |
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.
@spjuhel: we discussed that I should remove the initial guess in the optimization of the payout functions per subarea. However, it is a mandatory input to the minimize function. Do you have any suggestions?
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.
Isn't there a default guess that would always be a valid first guess and do not need to store ?
| # Monthly losses divided by principal | ||
| assert df_month["losses"].iloc[0] == [0.30, 0.50, 0.20] | ||
| assert df_month["months"].iloc[0] == [1, 2, 3] |
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.
You can compare pandas dataframes with pandas.testing.assert_frame_equal.
| logging.basicConfig( | ||
| format="{asctime} - {levelname} - {message}", | ||
| style="{", | ||
| datefmt="%Y-%m-%d %H:%M", | ||
| level=logging.INFO, | ||
| ) | ||
| LOGGER = logging.getLogger(__name__) |
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.
I am not sure where this comes frome. Can you please use the same testing environment as is used otherwise in CLIMADA?
Changes proposed in this PR:
This PR fixes #
PR Author Checklist
develop)PR Reviewer Checklist