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.core.dimensions._skypix.SkyPixDimension] = <factory>, any_dataset_has_timespan: bool = False)¶
Bases:
object
A QuantumGraph-generation helper class that manages the spatial and temporal bounds of a tasks’ quanta, for the purpose of finding prerequisite inputs.
Attributes Summary
Whether any
PrerequisiteFinder.dataset_has_timespan
attribute is true for any (remaining) prerequisite finder for this task.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
- any_dataset_has_timespan: bool = False¶
Whether any
PrerequisiteFinder.dataset_has_timespan
attribute is true for any (remaining) prerequisite finder for this task.
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.
- quantum_data_id
- 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.
- builder
- 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.
- quantum_data_id
- Returns:
- builder
TimespanBuilder
Object that accumulates the appropriate timespan bounds for a quantum. If a timespan is not needed, this object will do nothing.
- builder