oasislmf.preparation.correlations

This file defines the functions that maps the supported perils with the correlation settings. This data is usually obtained from the model_settings.

Functions

map_data(→ Optional[pandas.DataFrame])

Maps data from the model settings to to have Peril ID, peril_correlation_group, and damage_correlation_value.

Module Contents

oasislmf.preparation.correlations.map_data(data: dict | None, logger) pandas.DataFrame | None[source]

Maps data from the model settings to to have Peril ID, peril_correlation_group, and damage_correlation_value.

Args:

data: (dict) the data loaded from the model settings

Returns: (pd.DataFrame) the mapped data