upxo.meshing.gbconformant.pipeline.runs module
The runs held in the data directory: what each one was and how far it got.
- class upxo.meshing.gbconformant.pipeline.runs.RunInfo(name: str, path: Path, modified: float, parent: str | None = None, subset_index: int | None = None, dataset: str | None = None, level: str | None = None, subset_box: str | None = None, stages_saved: int = 0, last_stage: str | None = None, last_stage_title: str | None = None, finished: bool = False, saved_bytes: int = 0, has_manifest: bool = False, has_report: bool = False, voxels: int | None = None, tets: int | None = None, seconds: float | None = None, peak_memory_mb: float | None = None, disk_bytes: int = 0, history_bytes: int = 0, older_export_bytes: int = 0)[source]
Bases:
objectOne run folder.
- upxo.meshing.gbconformant.pipeline.runs.folder_size(path) int[source]
Bytes of every file under
path.
- upxo.meshing.gbconformant.pipeline.runs.describe_run(folder: Path) RunInfo[source]
What is known about the run in
folder(from its manifest and saved results).
- upxo.meshing.gbconformant.pipeline.runs.list_runs(root: Path | None = None) list[RunInfo][source]
Every run folder under
root(default: the data directory), newest first.A folder counts as a run when it holds a manifest, saved stage results, or is named after the default run.
- exception upxo.meshing.gbconformant.pipeline.runs.RunDeletionError[source]
Bases:
ValueErrorA run folder was not deleted; the message says why.
- upxo.meshing.gbconformant.pipeline.runs.delete_run(folder, *, root: Path | None = None, keep=None) int[source]
Delete a run folder and return the bytes freed.
Only a folder directly inside the runs directory (
root, by default the data directory’s) that is a run (it holds a manifest or saved stage results) is deleted; the runs directory itself, any other folder and the runkeep(the one that is loaded) are refused withRunDeletionError.
- upxo.meshing.gbconformant.pipeline.runs.older_exports(folder) list[source]
The export folders of a run that a later export replaced.
Each export writes a new numbered (or time-stamped) folder under
abaqus,surfacesandvolume. In each of these the newest export (a deck and its mesh-only deck count as one) is kept; the others are older.
- upxo.meshing.gbconformant.pipeline.runs.delete_older_exports(folder) int[source]
Delete the older exports of a run (see
older_exports()); returns the bytes freed.