DonutBlitzFamConfig#

class lsst.ts.wep.blitz.DonutBlitzFamConfig(*args, **kw)#

Bases: PipelineTaskConfig

Configuration for DonutBlitzFamTask.

Attributes Summary

astromRefFilter

Filter name to read from the reference catalog when fitting the WCS.

astrometry

Astrometry subtask for WCS fitting.

blitzDetect

Blitz donut detection subtask run on each exposure.

cameraOffset

Magnitude of the camera z shift that defocuses each exposure, in meters.

colorLog

Colorize select log messages with ANSI escape codes.

connections

Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.

cutStamps

Donut stamp cutting subtask.

detectorOffset

+offset extra-focal, -offset intra-focal.

donutSelector

Donut source selector subtask.

hangTimeout

unitTimeout bounds a single slow detector and names it, which this cannot do from a side thread that has no idea which detector is late.

isr

ISR subtask run on each science sensor exposure.

m2Offset

Magnitude of the M2 z shift that defocuses each exposure, in meters.

maxFitScatter

Maximum allowed on-sky scatter (arcsec) for WCS refit to be accepted.

measureCandidates

Donut candidate measurement subtask.

measureDiameter

Donut diameter detection subtask.

opticsModel

Batoid optics model, as a name in batoid's data directory with '{band}' standing in for the filter.

pairMatchTolerance

Spatial donut pairing tolerance, as a fraction of the donut radius.

photoRefFilter

Explicit filter name to read from the reference catalog for donut selection (e.g. 'phot_g_mean').

photoRefFilterPrefix

Filter prefix used for donut selection, combined with the exposure band label as '{prefix}_{band}'.

saveLogOutput

Flag to enable/disable saving of log output for a task, enabled by default.

saveStamps

at ~10k rows per pair it is the difference between a ~30 MB table and a multi-GB one.

saveWfImages

Include the binned wf_img and model_img columns.

subtractBackground

Background subtraction subtask run before donut detection.

unitTimeout

the slowest observed run averaged ~69s per wave (620s over 189 detectors, 21 workers), and a crowded detector or a wfEstimationMode pooling more donuts per fit is legitimately slower still, so tuning this down toward nominal would drop healthy work.

wavefrontFit

Wavefront fitting subtask using Danish algorithm.

wfEstimationMode

Wavefront estimation dispatch mode.

Methods Summary

setDefaults()

Set the subtask config defaults this task relies on.

Attributes Documentation

astromRefFilter: Field[str]#

Filter name to read from the reference catalog when fitting the WCS. Aliased over every filter via anyFilterMapsToThis, so it is what AstrometryTask resolves as its reference flux field. (str, default 'phot_g_mean')

astrometry: ConfigurableField#

Astrometry subtask for WCS fitting. (ConfigurableInstance, default <class 'lsst.meas.astrom.astrometry.AstrometryConfig'>)

blitzDetect: ConfigurableField#

Blitz donut detection subtask run on each exposure. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.blitzDetect.BlitzDetectConfig'>)

cameraOffset: Field[float]#

Magnitude of the camera z shift that defocuses each exposure, in meters. Signed per exposure as detectorOffset is. This is the full-array default; the nested detector moves with the camera, so the sign convention agrees with corner mode’s. (float, default 0.0015)

colorLog: Field[bool]#

Colorize select log messages with ANSI escape codes. If None (the default), color is enabled only when stdout is an interactive terminal. (bool, default None)

connections: pexConfig.ConfigField#

Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.

cutStamps: ConfigurableField#

Donut stamp cutting subtask. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.cutDonutStamps.CutDonutStampsConfig'>)

detectorOffset: Field[float]#

+offset extra-focal, -offset intra-focal. Zero by default – full-array mode defocuses by moving the whole camera, see cameraOffset. (float, default 0.0)

Type:

Magnitude of the detector-plane z shift that defocuses each exposure, in meters. Signed per exposure

donutSelector: ConfigurableField#

Donut source selector subtask. (ConfigurableInstance, default <class 'lsst.ts.wep.task.donutSourceSelectorTask.DonutSourceSelectorTaskConfig'>)

hangTimeout: Field[float]#

unitTimeout bounds a single slow detector and names it, which this cannot do from a side thread that has no idea which detector is late. (float, default 1800.0)

Type:

Seconds the detector pool may run before the hang watchdog dumps stacks and aborts the quantum, so that a pool blocked forever fails loudly and gets retried instead of burning its walltime. The default is ~3x the slowest pool observed over a large run (max 620s over 189 detectors, 21 workers on a Torino node). Raise it for a slower configuration – fewer cores, or a wfEstimationMode pooling more donuts per fit – since tripping it kills healthy work. A backstop rather than the first line of defence

isr: ConfigurableField#

ISR subtask run on each science sensor exposure. (ConfigurableInstance, default <class 'lsst.ip.isr.isrTaskLSST.IsrTaskLSSTConfig'>)

m2Offset: Field[float]#

Magnitude of the M2 z shift that defocuses each exposure, in meters. Signed per exposure as detectorOffset is. For data taken by moving M2 rather than the camera. (float, default 0.0)

maxFitScatter: Field[float]#

Maximum allowed on-sky scatter (arcsec) for WCS refit to be accepted. (float, default 1.0)

measureCandidates: ConfigurableField#

Donut candidate measurement subtask. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.measureDonutCandidates.MeasureDonutCandidatesConfig'>)

measureDiameter: ConfigurableField#

Donut diameter detection subtask. (ConfigurableInstance, default <class 'lsst.ts.wep.task.donutDetectDiameterTask.DonutDetectDiameterConfig'>)

opticsModel: Field[str]#

Batoid optics model, as a name in batoid’s data directory with ‘{band}’ standing in for the filter. (str, default 'LSST_{band}')

pairMatchTolerance: Field[float]#

Spatial donut pairing tolerance, as a fraction of the donut radius. Only used on the fallback path – when both exposures selected from the reference catalog, the same star has the same id and is matched exactly. Applied after the radial defocus shift is divided out, so one value is valid across the whole focal plane. (float, default 0.25)

photoRefFilter: Field[str]#

Explicit filter name to read from the reference catalog for donut selection (e.g. ‘phot_g_mean’). Overrides photoRefFilterPrefix when set. (str, default None)

photoRefFilterPrefix: Field[str]#

Filter prefix used for donut selection, combined with the exposure band label as ‘{prefix}_{band}’. Used when photoRefFilter is not set. (str, default 'monster_ComCam')

saveLogOutput#

Flag to enable/disable saving of log output for a task, enabled by default. (bool, default True)

saveStamps: Field[bool]#

at ~10k rows per pair it is the difference between a ~30 MB table and a multi-GB one. Turn it on for pilot runs. (bool, default False)

Type:

Include the un-binned stamp image column in the output catalog. Off by default

saveWfImages: Field[bool]#

Include the binned wf_img and model_img columns. Off by default for the same reason as saveStamps. With this on and saveStamps off, donuts that no fit consumed get a NaN wf_img. (bool, default False)

subtractBackground: ConfigurableField#

Background subtraction subtask run before donut detection. (ConfigurableInstance, default <class 'lsst.meas.algorithms.subtractBackground.SubtractBackgroundConfig'>)

unitTimeout: Field[float]#

the slowest observed run averaged ~69s per wave (620s over 189 detectors, 21 workers), and a crowded detector or a wfEstimationMode pooling more donuts per fit is legitimately slower still, so tuning this down toward nominal would drop healthy work. Detectors run in waves of n_workers, so each timed-out detector costs its wave at most this much of the pool’s wall-clock budget; the pool absorbs about hangTimeout/unitTimeout of them (6 at the defaults) before the cumulative time trips hangTimeout and the quantum is aborted. The bound on absorbed degradation is that ratio, not the detector count, and tripping it is the right outcome once that many detectors are failing. None waits indefinitely. (float, default 300.0)

Type:

Seconds one detector may run before its worker is killed and the detector recorded as lost, so a single pathological detector costs itself rather than the quantum. Much larger than the corner-mode equivalent because the per-detector work is

wavefrontFit: ConfigurableField#

Wavefront fitting subtask using Danish algorithm. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.wavefrontFitting.WavefrontFittingConfig'>)

wfEstimationMode: ChoiceField[str]#

Wavefront estimation dispatch mode. Every work unit lives on one detector, so all four are computed inside that detector’s worker. (str, default 'paired')

Allowed values:

'paired'

One star, both sides of focus. The only mode that associates donuts between the two exposures, and so the only one where a donut can end up unmatched.

'unpaired'

One star, one side of focus; each donut fit alone.

'full_detector'

Every donut on the detector from one exposure, as one work unit: two per detector.

'full_detector_pair'

Every donut on the detector from both exposures, as one joint work unit. Does not associate donuts – each carries its own defocal offsets, so the fit already knows which side of focus each one is on.

'None'

Field is optional

Methods Documentation

setDefaults()#

Set the subtask config defaults this task relies on.

Tunes the ISR, astrometry and donut-selector subtasks for full-array-mode wavefront sensing: a minimal ISR, an affine WCS fit with a bounded reference set, custom magnitude limits matching the monster reference catalog’s full filter names, a larger stamp count suited to the science detectors, and per-group fit logging turned off in favor of the aggregated per-detector summaries.

Return type:

None