DonutBlitzFamConnections#

class lsst.ts.wep.blitz.DonutBlitzFamConnections(*, config=None)#

Bases: PipelineTaskConnections

Pipeline 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

group is what makes the quantum a pair: exposure implies group, so a group-dimensioned quantum receives both exposures across all detectors.

physical_filter is required, not incidental. group does not imply it (only exposure/visit do), so without it the filter-dependent prerequisites arrive once per filter – 8 flat and 6 intrinsicZernikes refs per detector rather than 1. It also carries band into the quantum data ID for free.

What it does not fix is the reference catalog: group carries no spatial region either, so the htm7 lookup is unconstrained and every shard on the sky arrives – so refCat carries a lookupFunction (_lookup_refcat_shards) that narrows it at graph-build time, where a registry is available.

Parameters:

config (PipelineTaskConfig | None, default: None)

Attributes Summary

allConnections

Mapping holding all connection attributes.

crosstalk

Class used for declaring PipelineTask prerequisite connections.

defaultTemplates

deprecatedTemplates

dimensions

Set of dimension names that define the unit of work for this task.

famResults

Connection for output dataset.

flat

Class used for declaring PipelineTask prerequisite connections.

initInputs

Set with the names of all InitInput connection attributes.

initOutputs

Set with the names of all InitOutput connection attributes.

inputs

Set with the names of all connectionTypes.Input connection attributes.

intrinsicZernikes

Class used for declaring PipelineTask prerequisite connections.

linearizer

Class used for declaring PipelineTask prerequisite connections.

outputs

Set with the names of all Output connection attributes.

prerequisiteInputs

Set with the names of all PrerequisiteInput connection attributes.

ptc

Class used for declaring PipelineTask prerequisite connections.

raws

Class used for declaring PipelineTask input connections.

refCat

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 in inputs, prerequisiteInputs, outputs, initInputs, and initOutputs.

crosstalk#

Class used for declaring PipelineTask prerequisite connections.

Raises:

TypeError – Raised if minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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 a frozenset and may not be replaced.

famResults#

Connection for output dataset.

flat#

Class used for declaring PipelineTask prerequisite connections.

Raises:

TypeError – Raised if minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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 InitInput connection attributes.

See inputs for additional information.

initOutputs: set[str] = frozenset({})#

Set with the names of all InitOutput connection attributes.

See inputs for additional information.

inputs: set[str] = frozenset({'raws'})#

Set with the names of all connectionTypes.Input connection 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 a frozenset and may not be replaced.

intrinsicZernikes#

Class used for declaring PipelineTask prerequisite connections.

Raises:

TypeError – Raised if minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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 minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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 Output connection attributes.

See inputs for additional information.

prerequisiteInputs: set[str] = frozenset({'crosstalk', 'flat', 'intrinsicZernikes', 'linearizer', 'ptc', 'refCat'})#

Set with the names of all PrerequisiteInput connection attributes.

See inputs for additional information.

ptc#

Class used for declaring PipelineTask prerequisite connections.

Raises:

TypeError – Raised if minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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 minimum is greater than one but multiple=False.

  • NotImplementedError – Raised if minimum is zero for a regular Input connection; this is not currently supported by our QuantumGraph generation algorithm.

refCat#

Class used for declaring PipelineTask prerequisite connections.

Raises:

TypeError – Raised if minimum is greater than one but multiple=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 Input connections:

  • The query used to find them then during QuantumGraph generation can be fully customized by providing a lookupFunction.

  • Failed searches for prerequisites during QuantumGraph generation will usually generate more helpful diagnostics than those for regular Input connections.

  • 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 Input connections cannot do at present) and to work around QuantumGraph generation 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).