oasislmf.utils.defaults

Attributes

Functions

store_exposure_fp(fp, exposure_type)

Preserve original exposure file extention if its in a pandas supported

find_exposure_fp(input_dir, exposure_type[, required])

Find an OED exposure file stored in the oasis inputs dir

get_default_accounts_profile([path])

get_default_exposure_profile([path])

get_default_fm_profile_field_values([path])

get_default_step_policies_profile([path])

get_config_profile([path])

get_default_unified_profile([path])

get_default_fm_aggregation_profile([path])

assign_defaults_to_il_inputs(df)

Assign default values to IL inputs.

get_default_deterministic_analysis_settings([path])

Module Contents

oasislmf.utils.defaults.API_EXAMPLE_AUTH[source]
oasislmf.utils.defaults.DEFAULT_RTREE_INDEX_PROPS[source]
oasislmf.utils.defaults.SOURCE_IDX[source]
oasislmf.utils.defaults.SUMMARY_MAPPING[source]
oasislmf.utils.defaults.SUMMARY_OUTPUT[source]
oasislmf.utils.defaults.STATIC_DATA_FP[source]
oasislmf.utils.defaults.store_exposure_fp(fp, exposure_type)[source]

Preserve original exposure file extention if its in a pandas supported compressed format

compression{‘infer’, ‘gzip’, ‘bz2’, ‘zip’, ‘xz’, None}, default ‘infer’

For on-the-fly decompression of on-disk data. If ‘infer’ and filepath_or_buffer is path-like, then detect compression from the following extensions: ‘.gz’, ‘.bz2’, ‘.zip’, or ‘.xz’ (otherwise no decompression).

If using ‘zip’, the ZIP file must contain only one data file to be read in. Set to None for no decompression.

New in version 0.18.1: support for ‘zip’ and ‘xz’ compression.

oasislmf.utils.defaults.find_exposure_fp(input_dir, exposure_type, required=True)[source]

Find an OED exposure file stored in the oasis inputs dir while preserving the compressed ext

oasislmf.utils.defaults.get_default_accounts_profile(path=False)[source]
oasislmf.utils.defaults.get_default_exposure_profile(path=False)[source]
oasislmf.utils.defaults.get_default_fm_profile_field_values(path=False)[source]
oasislmf.utils.defaults.get_default_step_policies_profile(path=False)[source]
oasislmf.utils.defaults.get_config_profile(path=False)[source]
oasislmf.utils.defaults.get_default_unified_profile(path=False)[source]
oasislmf.utils.defaults.get_default_fm_aggregation_profile(path=False)[source]
oasislmf.utils.defaults.assign_defaults_to_il_inputs(df)[source]

Assign default values to IL inputs.

Parameters:

df (pandas.DataFrame) – IL input items dataframe

Returns:

IL input items dataframe

Return type:

pandas.DataFrame

oasislmf.utils.defaults.WRITE_CHUNKSIZE[source]
oasislmf.utils.defaults.DAMAGE_GROUP_ID_COLS = ['PortNumber', 'AccNumber', 'LocNumber'][source]
oasislmf.utils.defaults.HAZARD_GROUP_ID_COLS = ['PortNumber', 'AccNumber', 'LocNumber'][source]
oasislmf.utils.defaults.CORRELATION_GROUP_ID = ['CorrelationGroup'][source]
oasislmf.utils.defaults.OASIS_FILES_PREFIXES[source]
oasislmf.utils.defaults.get_default_deterministic_analysis_settings(path=False)[source]
oasislmf.utils.defaults.KTOOLS_NUM_PROCESSES[source]
oasislmf.utils.defaults.KTOOLS_FIFO_RELATIVE = False[source]
oasislmf.utils.defaults.KTOOLS_DISABLE_ERR_GUARD = False[source]
oasislmf.utils.defaults.KTOOLS_GUL_LEGACY_STREAM = False[source]
oasislmf.utils.defaults.KTOOLS_ALLOC_GUL_MAX = 3[source]
oasislmf.utils.defaults.KTOOLS_ALLOC_FM_MAX = 3[source]
oasislmf.utils.defaults.KTOOLS_ALLOC_IL_DEFAULT = 2[source]
oasislmf.utils.defaults.KTOOLS_ALLOC_RI_DEFAULT = 3[source]
oasislmf.utils.defaults.KTOOLS_DEBUG = False[source]