DonutBlitzFamConnections#
- class lsst.ts.wep.blitz.DonutBlitzFamConnections(*, config=None)#
Bases:
PipelineTaskConnectionsPipeline connections for DonutBlitzFamTask.
Every pixel and calibration input is
deferLoad=True: the parent resolves handles and reads nothing, so its memory stays flat regardless of how many detectors the quantum covers.Notes
groupis what makes the quantum a pair:exposureimpliesgroup, so a group-dimensioned quantum receives both exposures across all detectors.physical_filteris required, not incidental.groupdoes not imply it (onlyexposure/visitdo), so without it the filter-dependent prerequisites arrive once per filter – 8flatand 6intrinsicZernikesrefs per detector rather than 1. It also carriesbandinto the quantum data ID for free.What it does not fix is the reference catalog:
groupcarries no spatial region either, so the htm7 lookup is unconstrained and every shard on the sky arrives – sorefCatcarries alookupFunction(_lookup_refcat_shards) that narrows it at graph-build time, where a registry is available.- Parameters:
config (
PipelineTaskConfig|None, default:None)
Attributes Summary
Mapping holding all connection attributes.
Class used for declaring PipelineTask prerequisite connections.
Set of dimension names that define the unit of work for this task.
Connection for output dataset.
Class used for declaring PipelineTask prerequisite connections.
Set with the names of all
InitInputconnection attributes.Set with the names of all
InitOutputconnection attributes.Set with the names of all
connectionTypes.Inputconnection attributes.Class used for declaring PipelineTask prerequisite connections.
Class used for declaring PipelineTask prerequisite connections.
Set with the names of all
Outputconnection attributes.Set with the names of all
PrerequisiteInputconnection attributes.Class used for declaring PipelineTask prerequisite connections.
Class used for declaring PipelineTask input connections.
Class used for declaring PipelineTask prerequisite connections.
Attributes Documentation
- allConnections: Mapping[str, BaseConnection] = {'crosstalk': PrerequisiteInput(name='crosstalk', storageClass='CrosstalkCalib', doc='Crosstalk coefficients, one per detector.', multiple=True, deprecated=None, _deprecation_context='', dimensions=['instrument', 'detector'], isCalibration=True, deferLoad=True, minimum=1, lookupFunction=None), 'famResults': Output(name='donutBlitzFamResults', storageClass='ArrowAstropy', doc="Per-donut catalog for the pair, covering both exposures: selection metrics, fit results, Zernikes, and optionally stamp/model images. Same schema as corner mode's donutBlitzCornerResults, but a separate dataset type: a dataset type carries one dimension set and one meaning, and a future analysis of the ~3 mm donuts on the corner sensors of these same exposures would collide with a shared one.", multiple=True, deprecated=None, _deprecation_context='', dimensions=('instrument', 'visit'), isCalibration=False), 'flat': PrerequisiteInput(name='flat', storageClass='ExposureF', doc='Flat field calibration, one per detector.', multiple=True, deprecated=None, _deprecation_context='', dimensions=['instrument', 'detector', 'physical_filter'], isCalibration=True, deferLoad=True, minimum=1, lookupFunction=None), 'intrinsicZernikes': PrerequisiteInput(name='intrinsicZernikes', storageClass='IsrCalib', doc='Intrinsic Zernike calibration, one per detector.', multiple=True, deprecated=None, _deprecation_context='', dimensions=('detector', 'instrument', 'physical_filter'), isCalibration=True, deferLoad=True, minimum=0, lookupFunction=None), 'linearizer': PrerequisiteInput(name='linearizer', storageClass='Linearizer', doc='Linearity correction, one per detector.', multiple=True, deprecated=None, _deprecation_context='', dimensions=['instrument', 'detector'], isCalibration=True, deferLoad=True, minimum=1, lookupFunction=None), 'ptc': PrerequisiteInput(name='ptc', storageClass='PhotonTransferCurveDataset', doc='Photon transfer curve calibration, one per detector.', multiple=True, deprecated=None, _deprecation_context='', dimensions=['instrument', 'detector'], isCalibration=True, deferLoad=True, minimum=1, lookupFunction=None), 'raws': Input(name='raw', storageClass='Exposure', doc='Raws of both exposures in this group, all detectors. Deferred: the workers read them, not the parent.', multiple=True, deprecated=None, _deprecation_context='', dimensions=('instrument', 'exposure', 'detector'), isCalibration=False, deferLoad=True, minimum=1, deferGraphConstraint=False, deferBinding=False), 'refCat': PrerequisiteInput(name='the_monster_20250219', storageClass='SimpleCatalog', doc="Reference catalog for both WCS fitting and donut selection. Narrowed to the shards this group's focal plane overlaps by `_lookup_refcat_shards`, since a group-dimensioned quantum has no region for the default spatial lookup to use. Every surviving shard handle then goes to every worker; `ReferenceObjectLoader` intersects each shard's region with the detector's search box, so a worker still reads only the ~2 that overlap it.", multiple=True, deprecated=None, _deprecation_context='', dimensions=('htm7',), isCalibration=False, deferLoad=True, minimum=1, lookupFunction=<function _lookup_refcat_shards>)}#
Mapping holding all connection attributes.
This is a read-only view that is automatically updated when connection attributes are added, removed, or replaced in
__init__. It is also updated after__init__completes to reflect changes ininputs,prerequisiteInputs,outputs,initInputs, andinitOutputs.
- crosstalk#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- defaultTemplates = {}#
- deprecatedTemplates = {}#
- dimensions: set[str] = {'group', 'instrument', 'physical_filter'}#
Set of dimension names that define the unit of work for this task.
Required and implied dependencies will automatically be expanded later and need not be provided.
This may be replaced or modified in
__init__to change the dimensions of the task. After__init__it will be afrozensetand may not be replaced.
- famResults#
Connection for output dataset.
- flat#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- initInputs: set[str] = frozenset({})#
Set with the names of all
InitInputconnection attributes.See
inputsfor additional information.
- initOutputs: set[str] = frozenset({})#
Set with the names of all
InitOutputconnection attributes.See
inputsfor additional information.
- inputs: set[str] = frozenset({'raws'})#
Set with the names of all
connectionTypes.Inputconnection attributes.This is updated automatically as class attributes are added, removed, or replaced in
__init__. Removing entries from this set will cause those connections to be removed after__init__completes, but this is supported only for backwards compatibility; new code should instead just delete the collection attributed directly. After__init__this will be afrozensetand may not be replaced.
- intrinsicZernikes#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- linearizer#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- outputs: set[str] = frozenset({'famResults'})#
Set with the names of all
Outputconnection attributes.See
inputsfor additional information.
- prerequisiteInputs: set[str] = frozenset({'crosstalk', 'flat', 'intrinsicZernikes', 'linearizer', 'ptc', 'refCat'})#
Set with the names of all
PrerequisiteInputconnection attributes.See
inputsfor additional information.
- ptc#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).
- raws#
Class 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.
- refCat#
Class used for declaring PipelineTask prerequisite connections.
- Raises:
TypeError – Raised if
minimumis greater than one butmultiple=False.
Notes
Prerequisite inputs are used for datasets that must exist in the data repository before a pipeline including this is run; they cannot be produced by another task in the same pipeline.
In exchange for this limitation, they have a number of advantages relative to regular
Inputconnections:The query used to find them then during
QuantumGraphgeneration can be fully customized by providing alookupFunction.Failed searches for prerequisites during
QuantumGraphgeneration will usually generate more helpful diagnostics than those for regularInputconnections.The default query for prerequisite inputs relates the quantum dimensions directly to the dimensions of its dataset type, without being constrained by any of the other dimensions in the pipeline. This allows them to be used for temporal calibration lookups (which regular
Inputconnections cannot do at present) and to work aroundQuantumGraphgeneration limitations involving cases where naive spatial overlap relationships between dimensions are not desired (e.g. a task that wants all detectors in each visit for which the visit overlaps a tract, not just those where that detector+visit combination overlaps the tract).Prerequisite inputs may be optional (regular inputs are never optional).