upxo.meshing.gbconformant.pipeline.runfiles module

Run folders, JSON audits and setting readers used by the stage handlers.

upxo.meshing.gbconformant.pipeline.runfiles.subset_run_active(config: dict) → bool[source]

True when the subset stage is on and has allocated its indexed run folder.

upxo.meshing.gbconformant.pipeline.runfiles.export_folder(config: dict, kind: str) → Path[source]

Folder for one export of kind: the run folder, or a new numbered subfolder (created) of a subset run.

upxo.meshing.gbconformant.pipeline.runfiles.current_run_dir(config: dict) → Path[source]

The folder the settings point at; nothing is created.

upxo.meshing.gbconformant.pipeline.runfiles.ensure_run_dir(config: dict) → Path[source]
upxo.meshing.gbconformant.pipeline.runfiles.write_json(path: Path, payload: Any) → Path[source]
upxo.meshing.gbconformant.pipeline.runfiles.spacing_tuple(config: dict) → tuple[float, float, float][source]
upxo.meshing.gbconformant.pipeline.runfiles.cfg_float(config: dict, key: str, default: float) → float[source]

Read a float setting; treat missing/None as default.

Settings that may be left automatic hold an explicit None, so config.get(key, default) alone would still return None.

upxo.meshing.gbconformant.pipeline.runfiles.cfg_int(config: dict, key: str, default: int) → int[source]

Read an int setting; treat missing/None as default.

upxo.meshing.gbconformant.pipeline.runfiles.grain_summary(labels: ndarray) → dict[source]