LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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: