oasislmf.utils.profiles ======================= .. py:module:: oasislmf.utils.profiles Functions --------- .. autoapisummary:: oasislmf.utils.profiles.get_grouped_fm_profile_by_level oasislmf.utils.profiles.get_grouped_fm_profile_by_level_and_term_group oasislmf.utils.profiles.get_grouped_fm_terms_by_level_and_term_group oasislmf.utils.profiles.get_fm_terms_oed_columns oasislmf.utils.profiles.get_oed_hierarchy oasislmf.utils.profiles.get_step_policies_oed_mapping Module Contents --------------- .. py:function:: get_grouped_fm_profile_by_level(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile()) .. py:function:: 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) 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. .. py:function:: 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) Get the FM terms profile (this is a simplfied view of the main grouped profile, containing only information about the financial terms) .. py:function:: 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) .. py:function:: get_oed_hierarchy(exposure_profile=get_default_exposure_profile(), accounts_profile=get_default_accounts_profile()) .. py:function:: get_step_policies_oed_mapping(step_trigger_type, only_cols=False)