upxo.meshing.gbconformant.pipeline.run module
Run the pipeline from settings.
run restores whatever a previous run of the same folder saved and still trusts,
runs the stages after it, and writes the run manifest.
- class upxo.meshing.gbconformant.pipeline.run.RunResult(state: PipelineState, run_folder: Path, through: str, restored: list[str] = <factory>, ran: list[str] = <factory>, skipped: list[str] = <factory>, failed_stage: str | None = None, error: str | None = None, manifest: Path | None = None)[source]
Bases:
objectWhat a run did.
- state: PipelineState
- upxo.meshing.gbconformant.pipeline.run.new_state(config: dict) PipelineState[source]
A state for every stage, saving each stage’s results as it finishes (unless the settings say not to).
- upxo.meshing.gbconformant.pipeline.run.run(config: dict | None = None, *, through: str = 'export_abaqus', resume: bool = True, on_event: Callable[[dict], None] | None = None, write_manifest: bool = True, **settings) RunResult[source]
Run the pipeline up to and including
through.configand keywordsettingsare settings by name (seeupxo.meshing.gbconformant.pipeline.settings); unknown names and unusable values raiseSettingsError. Withresumethe results a previous run of the same run folder saved are restored first (each stage only while its settings and everything before it are unchanged) and only the remaining stages run. A failing stage does not raise: the result names it infailed_stageanderror.
- upxo.meshing.gbconformant.pipeline.run.open_run(run_folder, *, restore: bool = True) PipelineState[source]
A state holding the saved results of a finished run folder, with the settings it was made with.
The settings come from the folder’s
run_manifest.json. Stages whose input files or settings no longer match what they were made from are left stale, as inrun().