Skip to content

Conversation

@KaiOBerg
Copy link
Collaborator

@KaiOBerg KaiOBerg commented Nov 3, 2025

Changes proposed in this PR:

  • add ibrd_bonds.xlsx to data/cat_bonds. Contains metrics of CAT bonds issued by the World Bank. Used to calculate premiums for CAT bonds in the cat_bond module.

This PR fixes #

PR Author Checklist

PR Reviewer Checklist

@KaiOBerg KaiOBerg changed the base branch from main to develop November 3, 2025 13:26
damages = imp_subarea_evt_flt.iloc[:, subarea]

# Perform optimization for each subarea
result = minimize(
Copy link
Collaborator Author

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?

Copy link
Collaborator

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 ?

@KaiOBerg KaiOBerg changed the title Feature/cat bonds Merge CAT bond module into develop Nov 7, 2025
@KaiOBerg KaiOBerg changed the title Merge CAT bond module into develop Create CAT bond module Nov 7, 2025
Comment on lines +37 to +39
# 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]
Copy link
Member

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.

Comment on lines +6 to +12
logging.basicConfig(
format="{asctime} - {levelname} - {message}",
style="{",
datefmt="%Y-%m-%d %H:%M",
level=logging.INFO,
)
LOGGER = logging.getLogger(__name__)
Copy link
Member

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?

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.

4 participants