exosim.tasks.load.loadOptions#

Classes#

LoadOptions

Reads the XML file with payload parameters and returns an object with attributes related to the input data.

Module Contents#

class LoadOptions[source]#

Bases: exosim.tasks.task.Task

Reads the XML file with payload parameters and returns an object with attributes related to the input data.

Variables:

config_path (str) – Configuration path.

Returns:

Parsed XML input file.

Return type:

dict

Raises:

IOError – If the indicated file is not found or the format is not supported.

Examples

>>> load_options = LoadOptions()
>>> options = load_options(filename='path/to/file.xml')
execute()[source]#

Class execution. It runs on call and executes all the task actions returning the outputs. It requires the input with correct keywords