upxo.meshing.gbconformant.pipeline.rolling module
The rolling artefacts the stages hand on (labels, frozen geometry, upscaled labels).
A stage that is switched off still has to leave these coherent for the stages after it; the skip side effects here do that.
- upxo.meshing.gbconformant.pipeline.rolling.current_labels(state: PipelineState) ndarray[source]
- upxo.meshing.gbconformant.pipeline.rolling.set_labels(state: PipelineState, labels: ndarray, *, also_before: bool = False) None[source]
- upxo.meshing.gbconformant.pipeline.rolling.ensure_frozen_geometry(state: PipelineState)[source]
Return FrozenGeometry, creating an empty (no frozen grains) one if needed.
Optional freeze/upscale stages may be switched off; later stages still need this artefact the way the notebook always constructs one.
- upxo.meshing.gbconformant.pipeline.rolling.ensure_labels_upscaled(state: PipelineState) ndarray[source]
Ensure
labels_upscaled/ EFFECTIVE_SPACING exist (identity if skipped).
- upxo.meshing.gbconformant.pipeline.rolling.ensure_skipped_optionals(state: PipelineState, before_stage_id: str) None[source]
Apply skip side effects for disabled optional stages before
before_stage_id.A caller that runs one stage at a time never visits the optional stages that are switched off, so the artefacts those stages would have written (e.g.
frozen_geometry) are synthesised here.
- upxo.meshing.gbconformant.pipeline.rolling.mark_skipped(state: PipelineState, stage_id: str) None[source]
Record
stage_idas skipped (its switch is off) and keep the rolling artefacts coherent.
- upxo.meshing.gbconformant.pipeline.rolling.apply_skip_side_effects(state: PipelineState, stage_id: str) None[source]
Keep rolling artefacts coherent when an optional stage is skipped.