Skip to content

Commit

Permalink
Add clarification advised by @TallJimbo
Browse files Browse the repository at this point in the history
  • Loading branch information
gpdf committed Aug 2, 2024
1 parent 08c2963 commit a599c83
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion doc/lsst.pipe.base/creating-a-pipelinetask.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,24 @@ subtraction.

To bring this all together, see :ref:`pipeline-appendix-c`.

Note that the same mechanism works for output connections:
The same mechanism works for output connections:
an output from a `PipelineTask` can be made optional (under config control)
or a config switch can even be used to choose between different ways of
providing output.

Note that disabling a connection via this mechanism, during initialization,
has the same effect on quantum graph generation and execution as if the
connection had never existed.

Run-time optional inputs
------------------------

A separate mechanism exists that allows an `Input` connection to be made
run-time optional.
If the `Input.minimum` attribute is initialized to zero for a connection,
graph-building will still generate a quantum, and the `PipelineTask` will
be run, even if no dataset for that input can be found.


----------------------------------------
Dataset name configuration and templates
Expand Down

0 comments on commit a599c83

Please sign in to comment.