pipeline2dot

lsst.ctrl.mpexec.pipeline2dot(pipeline: Union[Pipeline, Iterable[TaskDef]], file: Any) → None

Convert Pipeline into GraphViz digraph.

This method is mostly for documentation/presentation purposes. Unlike other methods this method does not validate graph consistency.

Parameters:
pipeline : pipe.base.Pipeline

Pipeline description.

file : str or file object

File where GraphViz graph (DOT language) is written, can be a file name or file object.

Raises:
OSError is raised when output file cannot be open.
ImportError is raised when task class cannot be imported.
MissingTaskFactoryError is raised when TaskFactory is needed but not
provided.