WfDonutResult#

class lsst.ts.wep.blitz.WfDonutResult(donut_id, det_name, visit_id, zk_dev, zk_intrinsic, img, model_img, fit_success, fit_elapsed, setup_elapsed, fit_nfev, fit_cost, fit_optimality, fit_njev, fit_outcome, fit_dx, fit_dy, fit_flux, fit_fwhm, blend_frac, group_id, group_size, fit_bkg=None)#

Bases: object

One donut’s wavefront-fit outputs, produced by _wf_worker.

Consumed by _build_donut_catalog, keyed by (donut_id, det_name, visit_id). A fit that timed out or raised still produces a WfDonutResult with fit_success=False and all-NaN Zernikes; fit_outcome says which.

visit_id is part of the key because full-array mode fits the same star on the same detector twice, once per side of focus, so (donut_id, det_name) alone is ambiguous there. Corner mode has one visit per quantum, so including it changes nothing.

donut_id#

Donut id; with det_name and visit_id the catalog key.

Type:

int

det_name#

Detector name.

Type:

str

visit_id#

Visit the fitted donut came from.

Type:

int

zk_dev#

Dense Noll 0..``_ZK_JMAX`` wavefront deviations in meters, NaN where unfit.

Type:

numpy.ndarray

zk_intrinsic#

Dense Noll 0..``_ZK_JMAX`` intrinsic Zernikes in meters.

Type:

numpy.ndarray

img, model_img

The binned data and model images, or None.

Type:

numpy.ndarray or None

fit_success#

Whether least_squares converged.

Type:

bool

fit_elapsed, setup_elapsed

Fit and setup wall-clock in seconds.

Type:

float

fit_nfev, fit_njev

Function and Jacobian evaluation counts.

Type:

int

fit_cost, fit_optimality

Final cost and first-order optimality of the fit.

Type:

float

fit_outcome#

Which mutually exclusive fit path produced this result.

Type:

FitOutcome

fit_dx, fit_dy

Fitted centroid offsets in arcseconds.

Type:

float

fit_flux#

Fitted flux.

Type:

float

fit_fwhm#

Fitted seeing FWHM in arcseconds.

Type:

float

blend_frac#

Fraction of the stamp flux attributed to blends.

Type:

float

group_id#

Id of the fit group this donut belonged to, empty if none.

Type:

str

group_size#

Number of donuts in the group.

Type:

int

fit_bkg#

Danish’s fitted background coefficients, length model.nbkg; None where no fit produced them, empty at bkgOrder=-1.

Type:

numpy.ndarray or None, optional

Parameters:

Attributes Summary

Attributes Documentation

blend_frac: float = <dataclasses._MISSING_TYPE object>#
det_name: str = <dataclasses._MISSING_TYPE object>#
donut_id: int = <dataclasses._MISSING_TYPE object>#
fit_bkg: ndarray[tuple[Any, ...], dtype[float64]] | None = None#
fit_cost: float = <dataclasses._MISSING_TYPE object>#
fit_dx: float = <dataclasses._MISSING_TYPE object>#
fit_dy: float = <dataclasses._MISSING_TYPE object>#
fit_elapsed: float = <dataclasses._MISSING_TYPE object>#
fit_flux: float = <dataclasses._MISSING_TYPE object>#
fit_fwhm: float = <dataclasses._MISSING_TYPE object>#
fit_nfev: int = <dataclasses._MISSING_TYPE object>#
fit_njev: int = <dataclasses._MISSING_TYPE object>#
fit_optimality: float = <dataclasses._MISSING_TYPE object>#
fit_outcome: Literal['ok', 'nonconvergent', 'timeout', 'exception', 'x0_only', ''] = <dataclasses._MISSING_TYPE object>#
fit_success: bool = <dataclasses._MISSING_TYPE object>#
group_id: str = <dataclasses._MISSING_TYPE object>#
group_size: int = <dataclasses._MISSING_TYPE object>#
img: ndarray | None = <dataclasses._MISSING_TYPE object>#
model_img: ndarray | None = <dataclasses._MISSING_TYPE object>#
setup_elapsed: float = <dataclasses._MISSING_TYPE object>#
visit_id: int = <dataclasses._MISSING_TYPE object>#
zk_dev: ndarray[tuple[Any, ...], dtype[float64]] = <dataclasses._MISSING_TYPE object>#
zk_intrinsic: ndarray[tuple[Any, ...], dtype[float64]] = <dataclasses._MISSING_TYPE object>#