API reference¶
Auto-generated from source docstrings. The three entry points below cover most
use; every task-type spec lives in sweepx.tasks.schemas.
Runner¶
sweepx.tasks.runner.TaskRunner ¶
Bases: sweepx.tasks.tasks.forward.ForwardRunnerMixin, sweepx.tasks.tasks.fwi_freqsel.FreqselRunnerMixin, sweepx.tasks.tasks.fwi.FWIRunnerMixin, sweepx.tasks.tasks.fwi_plan_streaming.PlanStreamingFWIMixin, sweepx.tasks.tasks.rtm.RTMRunnerMixin, sweepx.tasks.tasks.lsrtm.LSRTMRunnerMixin
Synchronous local task runner. One-shot: instantiate and call .run(spec).
run ¶
source: where the spec came from -- {"path": <task file>,
"overrides": [...]} (the CLI passes it); the file is kept in the run
dir as task_source.yaml.
YAML I/O¶
sweepx.tasks.yaml_io.load_task ¶
Load and validate a task spec from a YAML file.
Raises pydantic.ValidationError on schema errors, and on a $VAR whose
variable is not set (see :func:load_task_from_dict).
sweepx.tasks.yaml_io.dump_task ¶
Serialise a task spec back to YAML.
Task schema (example)¶
sweepx.tasks.schemas.FWISpec ¶
Bases: sweepx.tasks.schemas.BaseTaskSpec
model_config
class-attribute
¶
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)