oasislmf.utils.defaults¶
Attributes¶
Functions¶
|
Preserve original exposure file extention if its in a pandas supported |
|
Find an OED exposure file stored in the oasis inputs dir |
Module Contents¶
- 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.