oasislmf.computation.base

Module Contents

Classes

ComputationStep

"Abstract" Class for all Computation Step (ExposurePreAnalysis, GulCalc, ...)

class oasislmf.computation.base.ComputationStep(**kwargs)[source]

“Abstract” Class for all Computation Step (ExposurePreAnalysis, GulCalc, …) initialise the object with all specified param un step_param and sub- ComputationStep provide a generic interface to get the all those parameter definitions (get_params)

the Run method must be implemented and contain le business execution logic.

step_params = [][source]
chained_commands = [][source]
classmethod get_default_run_dir()[source]
classmethod get_params()[source]

return all the params of the computation step defined in step_params and the params from the sub_computation step in chained_commands if two params have the same name, return the param definition of the first param found only this allow to overwrite the param definition of sub step if necessary.

classmethod get_arguments(**kwargs)[source]

Return a list of default arguments values for the functions parameters If given arg values in ‘kwargs’ these will override the defaults

classmethod get_signature()[source]

Create a function signature based on the ‘get_params()’ return

run()[source]

method that will be call by all the interface to execute the computation step