upxo.meshing.gbconformant.pipeline.preflight module

What a stage needs before it can run: stored results and non-empty settings.

class upxo.meshing.gbconformant.pipeline.preflight.StageRequirements(artefacts: tuple[str, ...] = (), config_nonempty: tuple[str, ...] = (), message: str = '')[source]

Bases: object

What must exist before a stage can run.

artefacts: tuple[str, ...] = ()

Artefact keys; alternatives of which any one will do are joined with |.

config_nonempty: tuple[str, ...] = ()
message: str = ''
class upxo.meshing.gbconformant.pipeline.preflight.PreflightIssue(stage_id: 'str', message: 'str', missing_artefacts: 'list[str]' = <factory>, missing_config: 'list[str]' = <factory>)[source]

Bases: object

stage_id: str
message: str
missing_artefacts: list[str]
missing_config: list[str]
upxo.meshing.gbconformant.pipeline.preflight.check_stage_preflight(state: PipelineState, stage_id: str) → PreflightIssue | None[source]

Return an issue if the stage should not run yet; else None.

upxo.meshing.gbconformant.pipeline.preflight.format_preflight_issue(issue: PreflightIssue) → str[source]