PrerequisiteBounds#
- class lsst.pipe.base.prerequisite_helpers.PrerequisiteBounds(task_node: ~lsst.pipe.base.pipeline_graph._tasks.TaskNode, all_dataset_skypix: dict[str, ~lsst.daf.butler.dimensions._skypix.SkyPixDimension] = <factory>, any_dataset_has_timespan: bool = False)#
Bases:
objectA QuantumGraph-generation helper class that manages the spatial and temporal bounds of a tasks’ quanta, for the purpose of finding prerequisite inputs.
Attributes Summary
The union of all
PrerequisiteFinder.dataset_skypixattributes for all (remaining) prerequisite finders for this task.Whether any
PrerequisiteFinder.dataset_has_timespanattribute is true for any (remaining) prerequisite finder for this task.Regular input or output connections whose (assumed spatial) data IDs should be used to define the spatial bounds of this task's quanta.
The
PipelineGraphnode that represents the task.Regular input or output connections whose (assumed temporal) data IDs should be used to define the temporal bounds of this task's quanta.
Methods Summary
make_skypix_bounds_builder(quantum_data_id)Return an object that accumulates the appropriate spatial bounds for a quantum.
make_timespan_builder(quantum_data_id)Return an object that accumulates the appropriate timespan for a quantum.
Attributes Documentation
- all_dataset_skypix: dict[str, SkyPixDimension] = <dataclasses._MISSING_TYPE object>#
The union of all
PrerequisiteFinder.dataset_skypixattributes for all (remaining) prerequisite finders for this task.
- any_dataset_has_timespan: bool = False#
Whether any
PrerequisiteFinder.dataset_has_timespanattribute is true for any (remaining) prerequisite finder for this task.
- spatial_connections: frozenset[str] = <dataclasses._MISSING_TYPE object>#
Regular input or output connections whose (assumed spatial) data IDs should be used to define the spatial bounds of this task’s quanta.
See Also#
PipelineTaskConnections.getSpatialBoundsConnections
- task_node: TaskNode = <dataclasses._MISSING_TYPE object>#
The
PipelineGraphnode that represents the task.
- temporal_connections: frozenset[str] = <dataclasses._MISSING_TYPE object>#
Regular input or output connections whose (assumed temporal) data IDs should be used to define the temporal bounds of this task’s quanta.
See Also#
PipelineTaskConnections.getTemporalBoundsConnections
Methods Documentation
- make_skypix_bounds_builder(quantum_data_id: DataCoordinate) SkyPixBoundsBuilder#
Return an object that accumulates the appropriate spatial bounds for a quantum.
Parameters#
- quantum_data_id
lsst.daf.butler.DataCoordinate Data ID for this quantum.
Returns#
- builder
SkyPixBoundsBuilder Object that accumulates the appropriate spatial bounds for a quantum. If the spatial bounds are not needed, this object will do nothing.
- quantum_data_id
- make_timespan_builder(quantum_data_id: DataCoordinate) TimespanBuilder#
Return an object that accumulates the appropriate timespan for a quantum.
Parameters#
- quantum_data_id
lsst.daf.butler.DataCoordinate Data ID for this quantum.
Returns#
- builder
TimespanBuilder Object that accumulates the appropriate timespan bounds for a quantum. If a timespan is not needed, this object will do nothing.
- quantum_data_id