## project.Project


A project folder: `project.yaml`, `config/<step>.yaml`, data and reports.


Usage

``` python
project.Project(
    root,
    config,
)
```


[run()](clean.run.md#dazflow.clean.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()](#configs) | Every pipeline step's configuration. |
| [load()](#load) | Read `project.yaml` from `root`. |
| [record()](#record) | The last run's record, or None when the project has not run. |
| [replay()](#replay) | Rerun the last run from `reports/record.json` and compare (design §7.10, D43). |
| [run()](#run) | Run the pipeline from `start` to `stop` on the folder's data. Writes nothing. |
| [step_config()](#step_config) | The step's configuration from `config/<step>.yaml`; no file: the step's defaults. |
| [validate()](#validate) | Check the configuration and that every input reads, without running a step. |
| [write()](#write) | Write the run's datasets, each step's artefacts and `reports/record.json`. |

------------------------------------------------------------------------


#### configs()


Every pipeline step's configuration.


Usage

``` python
configs()
```


------------------------------------------------------------------------


#### load()


Read `project.yaml` from `root`.


Usage

``` python
load(root=".")
```


------------------------------------------------------------------------


#### record()


The last run's record, or None when the project has not run.


Usage

``` python
record()
```


------------------------------------------------------------------------


#### replay()


Rerun the last run from `reports/record.json` and compare (design §7.10, D43).


Usage

``` python
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

``` python
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

``` python
step_config(step)
```


------------------------------------------------------------------------


#### validate()


Check the configuration and that every input reads, without running a step.


Usage

``` python
validate()
```


Raises the first [DazflowError](DazflowError.md#dazflow.DazflowError) found; returns what was checked.


------------------------------------------------------------------------


#### write()


Write the run's datasets, each step's artefacts and `reports/record.json`.


Usage

``` python
write(run)
```
