DonutBlitzCornerConfig#
- class lsst.ts.wep.blitz.DonutBlitzCornerConfig(*args, **kw)#
Bases:
PipelineTaskConfigConfiguration for DonutBlitzCornerTask.
Attributes Summary
Filter name to read from the reference catalog when fitting the WCS.
Astrometry subtask for WCS fitting.
Blitz donut detection subtask run on each corner wavefront sensor exposure.
Minimum number of data rows for blur clipping to run.
Colorize select log messages with ANSI escape codes.
How to combine the per-group Zernikes into the
averagerow of thezernikestable.Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Donut stamp cutting subtask.
Sigma clip donuts whose fitted blur (fwhm) is an outlier from the
zernikesaverage.~17MB per visit, and the plot is already available in the same run via savePlots, which reads the same data in memory.
the per-donut
donutBlitzCornerResultscatalog is the primary output and carries strictly more information.Donut source selector subtask.
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 subtask run on each corner wavefront sensor exposure.
Maximum allowed on-sky scatter (arcsec) for WCS refit to be accepted.
Donut candidate measurement subtask.
Donut diameter detection subtask.
Batoid optics model, as a name in batoid's data directory with '{band}' standing in for the filter.
Explicit filter name to read from the reference catalog for donut selection (e.g. 'phot_g_mean').
Filter prefix used for donut selection, combined with the exposure band label as '{prefix}_{band}'.
Subtask that generates diagnostic plots for a blitz visit.
Flag to enable/disable saving of log output for a task, enabled by default.
Build and write the visit's three diagnostic plot datasets.
Include the unbinned
stampimage column in the output catalog.Background subtraction subtask run before donut detection.
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.
Wavefront fitting subtask using Danish algorithm.
Wavefront estimation dispatch mode.
Methods Summary
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, default3)
-
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, defaultNone)
-
combineZernikes:
ConfigurableField# How to combine the per-group Zernikes into the
averagerow of thezernikestable. 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
zernikesaverage. See blurClipMinRows. (bool, defaultTrue)
-
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, defaultFalse)- Type:
Persist the
donutBlitzCornerDetectorImagesanddonutBlitzCornerSelectionOverlaysdatasets, which let DonutBlitzPlotTask regenerate the focal-plane selection plot after the fact. Off by default
-
doZernikesOutput:
Field[bool]# the per-donut
donutBlitzCornerResultscatalog is the primary output and carries strictly more information. (bool, defaultFalse)- Type:
Also emit the per-corner
zernikestable 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, default180.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, default1.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, defaultNone)
-
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, defaultTrue)
-
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, defaultFalse)
-
saveStamps:
Field[bool]# Include the unbinned
stampimage column in the output catalog. The diagnostic plots use it when present and fall back to the binnedwf_imgwhen not. (bool, defaultTrue)
-
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, default30.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 thezernikestable 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:
-
astromRefFilter: