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: object

What a run did.

state: PipelineState
run_folder: Path
through: str
restored: list[str]
ran: list[str]
skipped: list[str]
failed_stage: str | None = None
error: str | None = None
manifest: Path | None = None
property ok: bool
property reports: dict
export_folder() → Path | None[source]

Folder of the Abaqus export, when the run reached it.

property suggestions: list

Settings worth changing after the failure (empty when the run did not fail or nothing is known).

raise_for_failure() → None[source]
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.

config and keyword settings are settings by name (see upxo.meshing.gbconformant.pipeline.settings); unknown names and unusable values raise SettingsError. With resume the 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 in failed_stage and error.

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 in run().