Source code for oasislmf.cli.exposure

__all__ = [
    'ExposureCmd',
    'RunCmd'
]

from argparse import RawDescriptionHelpFormatter

from .command import OasisBaseCommand, OasisComputationCommand


[docs] class RunCmd(OasisComputationCommand): """ Generates deterministic losses using the installed ktools framework given direct Oasis files (GUL + optionally IL and RI input files). The command line arguments can be supplied in the configuration file (``oasislmf.json`` by default or specified with the ``--config`` flag). Run ``oasislmf config --help`` for more information. """
[docs] formatter_class = RawDescriptionHelpFormatter
[docs] computation_name = 'RunExposure'
[docs] class ExposureCmd(OasisBaseCommand): """ Exposure subcommands:: * generate - and optionally, validate - deterministic losses (GUL, IL or RIL) """
[docs] sub_commands = { 'run': RunCmd }