pipeline.Pipeline
Steps placed by name, run in order, each through its adapter.
Usage
pipeline.Pipeline(
steps=DEFAULT_STEPS,
*,
registry=None,
adapters=None,
)Steps never see each other: the pipeline passes an earlier result to a later step through the later step’s adapter.
Parameters
steps: Sequence[str] = DEFAULT_STEPS-
Step names in the order they run, each registered in registry. Defaults to DEFAULT_STEPS.
registry: Registry | None = None-
Where steps are looked up; dazflow.steps.registry by default.
adapters: Registry | None = None-
How each step is called; dazflow.pipeline.adapters by default. A step with no adapter is called as
run(dataset, config)with the latest dataset.
Methods
| Name | Description |
|---|---|
| config() |
value validated as the step’s Config, every default filled in.
|
| run() |
Run the steps from start to stop. Prints nothing and writes no files.
|
| select() |
The steps from start to stop, both included, in pipeline order.
|
| step() |
The step module registered under name.
|
config()
value validated as the step’s Config, every default filled in.
Usage
config(name, value)run()
Run the steps from start to stop. Prints nothing and writes no files.
Usage
run(
configs=None,
*,
root=None,
data=None,
previous=None,
start=None,
stop=None,
earlier=None,
earlier_configs=None,
earlier_record=None,
seed=None,
project=None,
environment=None
)configs maps step names to configurations (a missing one takes the step’s defaults). root is the folder relative input paths are read from. data holds frames for ingest’s inputs by name. previous is the previous data vintage for clean’s revisions check: a Dataset, or a ReadSpec read from root. A run that starts after the first step needs the earlier steps’ results in earlier (with their datasets), and their configurations in earlier_configs. seed is passed to every step’s adapter for the step’s random draws (project.yaml: seed). project is the project configuration a step’s StepInputs.record() carries; environment the environment it records (default: the running one; a replay passes the recorded one).
select()
The steps from start to stop, both included, in pipeline order.
Usage
select(start=None, stop=None)step()
The step module registered under name.
Usage
step(name)