workflow_from_config
- dtaianomaly.workflow.workflow_from_config(path: str, max_size: int = 1000000)[source]
Construct a Workflow using a configuration at a given path.
Construct a Workflow instance based on a JSON or TOML file. The file is first parsed, and then interpreted to obtain a
Workflow- Parameters:
- pathstr
Path to the config file.
- max_sizeint, optional
Maximal size of the config file in bytes. Defaults to 1 MB.
- Returns:
- Workflow
The parsed workflow from the given config file.
- Raises:
- TypeError
If the given path is not a string.
- FileNotFoundError
If the given path does not correspond to an existing file.
- ValueError
If the given path does not refer to a json or TOML file.