project.Project
A project folder: project.yaml, config/<step>.yaml, data and reports.
Usage
project.Project(
root,
config,
)run() reads the folder and writes nothing; write(run) writes the datasets, each step’s artefacts under reports/<step>/ and reports/record.json.
Methods
| Name | Description |
|---|---|
| configs() | Every pipeline step’s configuration. |
| load() |
Read project.yaml from root.
|
| record() | The last run’s record, or None when the project has not run. |
| replay() |
Rerun the last run from reports/record.json and compare (design §7.10, D43).
|
| run() |
Run the pipeline from start to stop on the folder’s data. Writes nothing.
|
| step_config() |
The step’s configuration from config/<step>.yaml; no file: the step’s defaults.
|
| validate() | Check the configuration and that every input reads, without running a step. |
| write() |
Write the run’s datasets, each step’s artefacts and reports/record.json.
|
configs()
Every pipeline step’s configuration.
Usage
configs()load()
Read project.yaml from root.
Usage
load(root=".")record()
The last run’s record, or None when the project has not run.
Usage
record()replay()
Rerun the last run from reports/record.json and compare (design §7.10, D43).
Usage
replay(*, rtol=None, atol=None)Every step is rerun from the configuration and inputs the record holds, and every recorded result compared: floats within rtol (atol near zero), everything else exactly. The project’s current configuration (project.yaml and config/, defaults filled in) must also still be the recorded one: a setting changed since the run is a difference too. The tolerance is the record’s config/report.yaml: replay unless given here. Writes nothing.
run()
Run the pipeline from start to stop on the folder’s data. Writes nothing.
Usage
run(start=None, stop=None, *, data=None)Steps before start are carried from the last record, their datasets read from the folder and checked against their recorded fingerprints.
step_config()
The step’s configuration from config/<step>.yaml; no file: the step’s defaults.
Usage
step_config(step)validate()
Check the configuration and that every input reads, without running a step.
Usage
validate()Raises the first DazflowError found; returns what was checked.
write()
Write the run’s datasets, each step’s artefacts and reports/record.json.
Usage
write(run)