DonutBlitzCornerConfig#

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

Bases: PipelineTaskConfig

Configuration for DonutBlitzCornerTask.

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 corner wavefront sensor exposure.

blurClipMinRows

Minimum number of data rows for blur clipping to run.

colorLog

Colorize select log messages with ANSI escape codes.

combineZernikes

How to combine the per-group Zernikes into the average row of the zernikes table.

connections

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

cutStamps

Donut stamp cutting subtask.

doBlurClip

Sigma clip donuts whose fitted blur (fwhm) is an outlier from the zernikes average.

doSelectionOutput

~17MB per visit, and the plot is already available in the same run via savePlots, which reads the same data in memory.

doZernikesOutput

the per-donut donutBlitzCornerResults catalog is the primary output and carries strictly more information.

donutSelector

Donut source selector subtask.

hangTimeout

unitTimeout is what bounds a single slow unit, and it is the only one of the two that can degrade gracefully, since the watchdog fires from a side thread with no way to know which unit is late and so can only kill the process.

isr

ISR subtask run on each corner wavefront sensor exposure.

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.

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}'.

plot

Subtask that generates diagnostic plots for a blitz visit.

saveLogOutput

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

savePlots

Build and write the visit's three diagnostic plot datasets.

saveStamps

Include the unbinned stamp image column in the output catalog.

subtractBackground

Background subtraction subtask run before donut detection.

unitTimeout

units run in waves of num_cores, so a visit in which every unit times out can still reach hangTimeout and abort, which is the right outcome for what is by then a systemic failure rather than one bad detector.

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 corner wavefront sensor exposure. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.blitzDetect.BlitzDetectConfig'>)

blurClipMinRows: Field[int]#

Minimum number of data rows for blur clipping to run. Below this it is skipped, because mad_std over one or two samples cannot flag anything and the clip would still replace the configured combineZernikes average with an unweighted mean. Relevant for the joint-fit modes, which yield one row per corner (full_corner) or two (full_detector). (int, default 3)

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)

combineZernikes: ConfigurableField#

How to combine the per-group Zernikes into the average row of the zernikes table. Only used when doZernikesOutput is True. (ConfigurableInstance, default <class 'lsst.ts.wep.task.combineZernikesSigmaClipTask.CombineZernikesSigmaClipTaskConfig'>)

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'>)

doBlurClip: Field[bool]#

Sigma clip donuts whose fitted blur (fwhm) is an outlier from the zernikes average. See blurClipMinRows. (bool, default True)

doSelectionOutput: Field[bool]#

~17MB per visit, and the plot is already available in the same run via savePlots, which reads the same data in memory. This governs persistence only – the cutout workers build the payload either way, since binning it costs under 1% of the cutout pool. (bool, default False)

Type:

Persist the donutBlitzCornerDetectorImages and donutBlitzCornerSelectionOverlays datasets, which let DonutBlitzPlotTask regenerate the focal-plane selection plot after the fact. Off by default

doZernikesOutput: Field[bool]#

the per-donut donutBlitzCornerResults catalog is the primary output and carries strictly more information. (bool, default False)

Type:

Also emit the per-corner zernikes table for legacy consumers. Off by default

donutSelector: ConfigurableField#

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

hangTimeout: Field[float]#

unitTimeout is what bounds a single slow unit, and it is the only one of the two that can degrade gracefully, since the watchdog fires from a side thread with no way to know which unit is late and so can only kill the process. What is left for it is a wedge outside the pools. The default clears the worst case unitTimeout admits at its own default, so the per-unit path resolves first: 8 corner detectors in waves of num_cores is 4 waves at 2 cores, 4x30s = 120s < 180s. Raise it alongside unitTimeout, never below it, and check the galactic-bulge visits since cutout time is what scales with reference density. (float, default 180.0)

Type:

Seconds either the cutout or the wavefront 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. This is a backstop

isr: ConfigurableField#

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

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}')

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. The default matches the only per-band LSST-like fluxes present in the_monster_20250219 (‘monster_ComCam_g’ etc.); there are no monster_LSSTCam_* columns in any released refcat version, so override this once a matching set exists. (str, default 'monster_ComCam')

plot: ConfigurableField#

Subtask that generates diagnostic plots for a blitz visit. (ConfigurableInstance, default <class 'lsst.ts.wep.blitz.donutBlitzPlot.DonutBlitzPlotConfig'>)

saveLogOutput#

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

savePlots: Field[bool]#

Build and write the visit’s three diagnostic plot datasets. Off in production, where the cost buys nothing and Zernikes are wanted as soon as they exist; DonutBlitzPlotTask can draw the same plots later from the catalog, and from the selection datasets too if doSelectionOutput persisted them. Also deletes the plot output connections, so a pipeline run with this off predicts no plots. (bool, default False)

saveStamps: Field[bool]#

Include the unbinned stamp image column in the output catalog. The diagnostic plots use it when present and fall back to the binned wf_img when not. (bool, default True)

subtractBackground: ConfigurableField#

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

unitTimeout: Field[float]#

units run in waves of num_cores, so a visit in which every unit times out can still reach hangTimeout and abort, which is the right outcome for what is by then a systemic failure rather than one bad detector. (float, default 30.0)

Type:

Seconds one detector’s cutout, or one wavefront group’s fit, may run before that worker is killed and its unit recorded as lost, so a single pathological unit costs its own detector or group instead of the whole quantum. Cutout median is 1.9s and wavefront median 3.1s, and neither pool passed 26s across ~2900 visits, so the default leaves a crowded field room to be slow without being killed – do not tune it down toward nominal. None waits indefinitely, restoring the behaviour where only hangTimeout notices an overrun. Note this bounds one unit and not the pool

wavefrontFit: ConfigurableField#

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

wfEstimationMode: ChoiceField[str]#

Wavefront estimation dispatch mode. The allowed values are sourced from utils.CORNER_WF_MODES, which also defines the per-row label prefix the zernikes table writes for each mode, so a mode added there shows up in both places at once. (str, default 'paired')

Allowed values:

'paired'

Pair donuts from SW0/SW1 by SNR rank and dispatch as intra/extra pairs.

'unpaired'

Dispatch individual donuts independently.

'full_corner'

Dispatch all donuts from a corner (SW0+SW1, whichever are present) as one work unit.

'full_detector'

Dispatch all donuts on each detector as one work unit (8 fits per visit).

'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 corner wavefront sensing: a minimal ISR, an affine WCS fit with a bounded reference set, and custom magnitude limits matching the monster reference catalog’s full filter names.

Return type:

None