gui.model.RunInfo(
name,
path,
date='',
unit='',
label='',
protocol='',
score='',
has_run=False,
has_score=False,
)
One directory below regen/runs/, as the Runs view lists it.
Attributes
| name |
str |
The directory name. |
| path |
Path |
The directory. |
| date |
str |
YYYY-MM-DD from the name, or an empty string. |
| unit |
str |
The unit from the name. |
| label |
str |
What ran, from the name: mutate, local-<model>, context … |
| protocol |
str |
The protocol of run.toml if there is one. |
| score |
str |
killed/planted from score.toml if there is one. |
| has_run |
bool |
Whether run.toml exists. |
| has_score |
bool |
Whether score.toml exists. |
Examples
from pathlib import Path
from tempfile import TemporaryDirectory
from spotregen.gui.model import list_runs
with TemporaryDirectory() as tmp:
(Path(tmp) / "regen/runs/2026-10-11-core.calc-mutate").mkdir(parents=True)
run = list_runs(tmp)[0]
print(run.date, run.unit, run.label)
2026-10-11 core.calc mutate