Skip to content

config

config

Configuration module for the library.

NB: most users will never need this. It's mainly for NSHM developers.

DELIVERABLES_FOLDER = str(PurePath(os.path.realpath(__file__)).parent.parent / 'deliverables') module-attribute

DISAGG_HAZARD_ID = 'NSHM_v1.0.4_mag' module-attribute

Disaggregations for calculation of mean magnitude were done for magnitude only (rather than mag, dist, TRT, and epsilon) for computational speed and are stored with a unique hazard ID.

REPORTS_FOLDER = str(PurePath(os.path.realpath(__file__)).parent.parent / 'reports') module-attribute

RESOURCES_FOLDER = str(PurePath(os.path.realpath(__file__)).parent.parent / 'resources') module-attribute

WORKING_FOLDER = os.getenv('WORKING_FOLDER', tempfile.gettempdir()) module-attribute

A standardised directory path for disposable working files.