oasislmf.cli.model

Module Contents

Classes

GenerateExposurePreAnalysisCmd

Generate a new EOD from original one by specifying a model specific pre-analysis hook for exposure modification

GenerateKeysCmd

Generates keys from a model lookup, and write Oasis keys and keys error files.

GenerateOasisFilesCmd

Generates the standard Oasis GUL input files + optionally the IL/FM input

GenerateLossesCmd

Generates the standard Oasis GUL input files + optionally the IL/FM input

GenerateLossesPartialCmd

Distributed Oasis CMD: desc todo

GenerateLossesOutputCmd

Distributed Oasis CMD: desc todo

RunCmd

Run models end to end.

ModelCmd

Model subcommands:

class oasislmf.cli.model.GenerateExposurePreAnalysisCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Generate a new EOD from original one by specifying a model specific pre-analysis hook for exposure modification see ExposurePreAnalysis for more detail

formatter_class[source]
computation_name = 'ExposurePreAnalysis'[source]
class oasislmf.cli.model.GenerateKeysCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Generates keys from a model lookup, and write Oasis keys and keys error files.

formatter_class[source]
computation_name = 'GenerateKeys'[source]
class oasislmf.cli.model.GenerateOasisFilesCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Generates the standard Oasis GUL input files + optionally the IL/FM input files and the RI input files.

formatter_class[source]
computation_name = 'GenerateOasisFiles'[source]
class oasislmf.cli.model.GenerateLossesCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Generates the standard Oasis GUL input files + optionally the IL/FM input files and the RI input files.

formatter_class[source]
computation_name = 'GenerateOasisLosses'[source]
class oasislmf.cli.model.GenerateLossesPartialCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Distributed Oasis CMD: desc todo

formatter_class[source]
computation_name = 'GenerateLossesPartial'[source]
class oasislmf.cli.model.GenerateLossesOutputCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Distributed Oasis CMD: desc todo

formatter_class[source]
computation_name = 'GenerateLossesOutput'[source]
class oasislmf.cli.model.RunCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisComputationCommand

Run models end to end.

The command line arguments can be supplied in the configuration file (oasislmf.json by default or specified with the --config flag).

formatter_class[source]
computation_name = 'RunModel'[source]
class oasislmf.cli.model.ModelCmd(*args, **kwargs)[source]

Bases: oasislmf.cli.command.OasisBaseCommand

Model subcommands:

* generating keys files from model lookups
* generating Oasis input CSV files (GUL [+ IL, RI])
* generating losses from a preexisting set of Oasis input CSV files
* generating deterministic losses (no model)
* running a model end-to-end
sub_commands[source]