LSST Applications g0265f82a02+d6b5cd48b5,g02d81e74bb+a41d3748ce,g1470d8bcf6+6be6c9203b,g2079a07aa2+14824f138e,g212a7c68fe+a4f2ea4efa,g2305ad1205+72971fe858,g295015adf3+ab2c85acae,g2bbee38e9b+d6b5cd48b5,g337abbeb29+d6b5cd48b5,g3ddfee87b4+31b3a28dff,g487adcacf7+082e807817,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+b2918d57ae,g5a732f18d5+66d966b544,g64a986408d+a41d3748ce,g858d7b2824+a41d3748ce,g8a8a8dda67+a6fc98d2e7,g99cad8db69+7fe4acdf18,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga8c6da7877+84af8b3ff8,gb0e22166c9+3863383f4c,gb6a65358fc+d6b5cd48b5,gba4ed39666+9664299f35,gbb8dafda3b+d8d527deb2,gc07e1c2157+b2dbe6b631,gc120e1dc64+61440b2abb,gc28159a63d+d6b5cd48b5,gcf0d15dbbd+31b3a28dff,gdaeeff99f8+a38ce5ea23,ge6526c86ff+39927bb362,ge79ae78c31+d6b5cd48b5,gee10cc3b42+a6fc98d2e7,gf1cff7945b+a41d3748ce,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lsst.meas.algorithms.measureApCorr.MeasureApCorrError Class Reference
Inheritance diagram for lsst.meas.algorithms.measureApCorr.MeasureApCorrError:

Public Member Functions

 __init__ (self, *name, nSources, ndof, iteration=None)
 
 metadata (self)
 

Public Attributes

 name
 
 nSources
 
 ndof
 
 iteration
 

Detailed Description

Raised if Aperture Correction fails in a non-recoverable way.

Parameters
----------
name : `str`
    Name of the kind of aperture correction that failed; typically an
    instFlux catalog field.
nSources : `int`
    Number of sources available to the fitter at the point of failure.
ndof : `int`
    Number of degrees of freedom required at the point of failure.
iteration : `int`, optional
    Which fit iteration the failure occurred in.

Definition at line 38 of file measureApCorr.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.__init__ ( self,
* name,
nSources,
ndof,
iteration = None )

Definition at line 53 of file measureApCorr.py.

53 def __init__(self, *, name, nSources, ndof, iteration=None):
54 msg = f"Unable to measure aperture correction for '{name}'"
55 if iteration is not None:
56 msg += f" after {iteration} steps:"
57 else:
58 msg += ":"
59 msg += f" only {nSources} sources, but require at least {ndof}."
60 super().__init__(msg)
61 self.name = name
62 self.nSources = nSources
63 self.ndof = ndof
64 self.iteration = iteration
65

Member Function Documentation

◆ metadata()

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.metadata ( self)

Definition at line 67 of file measureApCorr.py.

67 def metadata(self):
68 metadata = {"name": self.name,
69 "nSources": self.nSources,
70 "ndof": self.ndof,
71 }
72 # NOTE: have to do this because task metadata doesn't allow None.
73 if self.iteration is not None:
74 metadata["iteration"] = self.iteration
75 return metadata
76
77

Member Data Documentation

◆ iteration

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.iteration

Definition at line 64 of file measureApCorr.py.

◆ name

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.name

Definition at line 61 of file measureApCorr.py.

◆ ndof

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.ndof

Definition at line 63 of file measureApCorr.py.

◆ nSources

lsst.meas.algorithms.measureApCorr.MeasureApCorrError.nSources

Definition at line 62 of file measureApCorr.py.


The documentation for this class was generated from the following file: