WavefrontFittingTask#

class lsst.ts.wep.blitz.WavefrontFittingTask(**kwargs)#

Bases: Task

Fit wavefront aberrations from grouped donut stamps with danish.

This task takes a pre-grouped collection of donuts (a _WfGroup) and performs joint wavefront fitting across all donuts in the group, returning Zernike coefficients for the wavefront error.

Parameters:

kwargs (Any)

Methods Summary

resolvedMaskModel()

The specific mask file name to record in the catalog.

run(group)

Fit wavefront aberrations for a group of donuts.

Methods Documentation

resolvedMaskModel()#

The specific mask file name to record in the catalog.

RubinObsc.yaml is a generic alias for whichever versioned mask is current – in danish’s source tree it is a symlink, and it has been repointed across releases (v3.14 through danish 1.2, v1000 from 1.3). The configured name therefore does not say which mask a past run used, so the catalog records the versioned name instead, which is what lets two catalogs be compared after the fact.

The alias resolves two ways, because packaging does not preserve the symlink: setuptools dereferences it, so an installed danish has RubinObsc.yaml as a regular file holding a byte-for-byte copy of its former target, which still ships under its own name. A symlink is followed directly; a dereferenced copy is matched to its twin by content digest. When neither applies – a mask with no versioned sibling, such as a policy: file – the configured name is already the specific one and is returned as is.

Returns:

name – Basename of the versioned mask file to record in the catalog: the symlink target when path is a link, the content-matched versioned sibling when it is a dereferenced copy, or the configured basename when neither applies.

Return type:

str

run(group)#

Fit wavefront aberrations for a group of donuts.

Parameters:

group (_WfGroup) – Pre-grouped collection of donuts to fit jointly, including band, rtp, and alt for exposure-dependent parameters.

Returns:

result –

result

This group’s fit, as a lsst.ts.wep.blitz.dataStructures.WfGroupResult. See that class for what each field means.

Return type:

lsst.pipe.base.Struct