to_pipe

method of dascore.workflow.provenance.ProvenanceNode source

to_pipe(
    self ,
)-> ‘Pipe’

Return a pipe which would do again what this node records.

The sources are left out: a pipe describes what to do, and is run against whatever data it is given. A graph a pipe has no way to say raises ParameterError rather than giving back a pipe which could not run: one where nothing was done, one where a step was fed both by an earlier step and straight from a source, one where the steps reading from the sources do not each take exactly one input, and any shape left which does not make a graph a pipe would accept.