uwtools.api.jedi
API access to the uwtools jedi driver.
- class uwtools.api.jedi.JEDI(cycle, config=None, dry_run=False, key_path=None, batch=False, schema_file=None, controller=None)
A driver for the JEDI component.
- Parameters:
- configuration_file()
The executable’s YAML configuration file.
- property cycle
The cycle.
- files_copied()
Files copied for run.
- files_linked()
Files linked for run.
- provisioned_rundir()
Run directory provisioned with all required content.
- run()
A run.
- runscript()
The runscript.
- taskname(suffix)
Returns a common tag for graph-task log messages.
- validate()
Validate the UW driver config.
- validate_only()
Validate JEDI config YAML.
- uwtools.api.jedi.execute(task, cycle, config=None, batch=False, dry_run=False, graph_file=None, key_path=None, stdin_ok=False)
Execute a task.
If
batchis specified, a runscript will be written and submitted to the batch system. Otherwise, the executable will be run directly on the current system.- Parameters:
task (str) – The task to execute.
config (str | Path | None) – Path to config file (read stdin if missing or None).
cycle (datetime) – The cycle.
batch (bool) – Submit run to the batch system?
dry_run (bool) – Do not run the executable, just report what would have been done.
graph_file (str | Path | None) – Write Graphviz DOT output here.
key_path (list[str] | None) – Path of keys to subsection of config file.
stdin_ok (bool) – OK to read from stdin?
- Returns:
Trueif task completes without raising an exception.- Return type:
- uwtools.api.jedi.graph()
Returns Graphviz DOT code for the most recently executed task.
- Return type: