Skip to content

run_batch_from_json API Reference

geoloop.bin.Runbatch.run_batch_from_json

run_batch_from_json(config_file: str) -> None

Execute internal registered command functions defined in a JSON batch file.

Parameters:

Name Type Description Default
config_file str

Path to a JSON file specifying commands to be executed.

required
Notes

Expected JSON format::

{
    "commands": [
        {"command": "Plotmain", "args": ["config.json"]},
        ...
    ]
}

Raises:

Type Description
ValueError

If an unknown command is encountered.

Returns:

Type Description
None