Input¶
- class lsst.pipe.base.connectionTypes.Input(name: str, storageClass: str, doc: str = '', multiple: bool = False, _deprecation_context: str = '', dimensions: Iterable[str] = (), isCalibration: bool = False, deferLoad: bool = False, minimum: int = 1, deferGraphConstraint: bool = False, deferBinding: bool = False, *, deprecated: str | None = None)¶
Bases:
BaseInputClass used for declaring PipelineTask input connections.
- Raises:
- TypeError
Raised if
minimumis greater than one butmultiple=False.- NotImplementedError
Raised if
minimumis zero for a regularInputconnection; this is not currently supported by our QuantumGraph generation algorithm.
Attributes Summary
If
True, the dataset will not be automatically included in the pipeline graph (deferGraphConstraint=Trueis implied).If
True, do not include this dataset type's existence in the initial query that starts the QuantumGraph generation process.Whether this dataset type will be loaded as a
lsst.daf.butler.DeferredDatasetHandle.A description of why this connection is deprecated, including the version after which it may be removed.
The keys of the butler data coordinates for this dataset type.
Documentation for this connection.
Trueif this dataset type may be included inCALIBRATIONcollections to associate it with a validity range,False(default) otherwise.Minimum number of datasets required for this connection, per quantum.
Indicates if this connection should expect to contain multiple objects of the given dataset type.
Attributes Documentation
- deferBinding: bool = False¶
If
True, the dataset will not be automatically included in the pipeline graph (deferGraphConstraint=Trueis implied).A custom
QuantumGraphBuilderis required to bind it and add a corresponding edge to the pipeline graph. This option allows the same dataset type to be used as both an input and an output of a quantum.
- deferGraphConstraint: bool = False¶
If
True, do not include this dataset type’s existence in the initial query that starts the QuantumGraph generation process.This can be used to make QuantumGraph generation faster by avoiding redundant datasets, and in certain cases it can (along with careful attention to which tasks are included in the same QuantumGraph) be used to work around the QuantumGraph generation algorithm’s inflexible handling of spatial overlaps. This option has no effect when the connection is not an overall input of the pipeline (or subset thereof) for which a graph is being created, and it never affects the ordering of quanta.
- deferLoad: bool = False¶
Whether this dataset type will be loaded as a
lsst.daf.butler.DeferredDatasetHandle. PipelineTasks can use this object to load the object at a later time.
- deprecated: str | None = None¶
A description of why this connection is deprecated, including the version after which it may be removed.
If not
None, the string is appended to the docstring for this connection and the corresponding config Field.
- isCalibration: bool = False¶
Trueif this dataset type may be included inCALIBRATIONcollections to associate it with a validity range,False(default) otherwise.
- minimum: int = 1¶
Minimum number of datasets required for this connection, per quantum.
This is checked in the base implementation of
PipelineTaskConnections.adjustQuantum, which raisesNoWorkFoundif the minimum is not met forInputconnections (causing the quantum to be pruned, skipped, or never created, depending on the context), andFileNotFoundErrorforPrerequisiteInputconnections (causing QuantumGraph generation to fail).PipelineTaskimplementations may provide customadjustQuantumimplementations for more fine-grained or configuration-driven constraints, as long as they are compatible with this minimum.
- multiple: bool = False¶
Indicates if this connection should expect to contain multiple objects of the given dataset type.
Tasks with more than one connection with
multiple=Truewith the same dimensions may want to implementPipelineTaskConnections.adjustQuantumto ensure those datasets are consistent (i.e. zip-iterable) inPipelineTask.runQuantum()and notify the execution system as early as possible of outputs that will not be produced because the corresponding input is missing.