oasislmf.utils.profiles

Functions

get_grouped_fm_profile_by_level([exposure_profile, ...])

get_grouped_fm_profile_by_level_and_term_group([...])

Get the grouped exposure + accounts profile - this describes the

get_grouped_fm_terms_by_level_and_term_group([...])

Get the FM terms profile (this is a simplfied view of the main grouped

get_fm_terms_oed_columns([fm_terms, levels, ...])

get_oed_hierarchy([exposure_profile, accounts_profile])

get_step_policies_oed_mapping(step_trigger_type[, ...])

Module Contents

oasislmf.utils.profiles.get_grouped_fm_profile_by_level(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile())[source]
oasislmf.utils.profiles.get_grouped_fm_profile_by_level_and_term_group(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile(), grouped_profile_by_level=None)[source]

Get the grouped exposure + accounts profile - this describes the financial terms found in the source exposure and accounts files, which are for the following FM levels: site coverage (# 1), site pd (# 2), site all (# 3), cond. all (# 6), policy all (# 9), policy layer (# 10). It also describes the OED hierarchy terms present in the exposure and accounts files, namely portfolio num., acc. num., loc. num., and cond. num.

oasislmf.utils.profiles.get_grouped_fm_terms_by_level_and_term_group(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile(), grouped_profile_by_level=None, grouped_profile_by_level_and_term_group=None, lowercase=True)[source]

Get the FM terms profile (this is a simplfied view of the main grouped profile, containing only information about the financial terms)

oasislmf.utils.profiles.get_fm_terms_oed_columns(fm_terms=get_grouped_fm_terms_by_level_and_term_group(), levels=list(SUPPORTED_FM_LEVELS.keys()), level_ids=None, term_group_ids=[1], terms=[v['id'] for v in FM_TERMS.values()], remove_nulls=True)[source]
oasislmf.utils.profiles.get_oed_hierarchy(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile())[source]
oasislmf.utils.profiles.get_step_policies_oed_mapping(step_trigger_type, only_cols=False)[source]