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 | Static Public Attributes | Protected Member Functions | List of all members
lsst.jointcal.check_logged_chi2.Chi2Data Class Reference

Public Member Functions

 __post_init__ (self)
 

Public Attributes

 raw
 
 ndof
 
 reduced
 
 init_count
 

Static Public Attributes

list kind ()
 
np raw .ndarray
 
np ndof .ndarray
 
np reduced .ndarray
 
int init_count = dataclasses.field(init=False)
 

Protected Member Functions

 _find_init (self)
 

Detailed Description

Store the chi2 values read in from a jointcal log file.

Definition at line 42 of file check_logged_chi2.py.

Member Function Documentation

◆ __post_init__()

lsst.jointcal.check_logged_chi2.Chi2Data.__post_init__ ( self)

Definition at line 51 of file check_logged_chi2.py.

51 def __post_init__(self):
52 # ensure the array types are correct
53 self.raw = np.array(self.raw, dtype=np.float64)
54 self.ndof = np.array(self.ndof, dtype=np.int)
55 self.reduced = np.array(self.reduced, dtype=np.float64)
56 self.init_count = self._find_init()
57

◆ _find_init()

lsst.jointcal.check_logged_chi2.Chi2Data._find_init ( self)
protected
Return the index of the first "fit step", after initialization.

NOTE
----
There are never more than ~25 items in the list, so search optimization
is not worth the trouble.

Definition at line 58 of file check_logged_chi2.py.

58 def _find_init(self):
59 """Return the index of the first "fit step", after initialization.
60
61 NOTE
62 ----
63 There are never more than ~25 items in the list, so search optimization
64 is not worth the trouble.
65 """
66 # Logs pre-DM-25779
67 if "Fit prepared" in self.kind:
68 return self.kind.index("Fit prepared") + 1
69 # Logs post-DM-25779
70 elif "Fit iteration 0" in self.kind:
71 return self.kind.index("Fit iteration 0")
72 else:
73 raise RuntimeError(f"Cannot find end of initialization sequence in {self.kind}")
74
75

Member Data Documentation

◆ init_count [1/2]

int lsst.jointcal.check_logged_chi2.Chi2Data.init_count = dataclasses.field(init=False)
static

Definition at line 49 of file check_logged_chi2.py.

◆ init_count [2/2]

lsst.jointcal.check_logged_chi2.Chi2Data.init_count

Definition at line 56 of file check_logged_chi2.py.

◆ kind

list lsst.jointcal.check_logged_chi2.Chi2Data.kind ()
static

Definition at line 45 of file check_logged_chi2.py.

◆ ndof [1/2]

np lsst.jointcal.check_logged_chi2.Chi2Data.ndof .ndarray
static

Definition at line 47 of file check_logged_chi2.py.

◆ ndof [2/2]

lsst.jointcal.check_logged_chi2.Chi2Data.ndof

Definition at line 54 of file check_logged_chi2.py.

◆ raw [1/2]

np lsst.jointcal.check_logged_chi2.Chi2Data.raw .ndarray
static

Definition at line 46 of file check_logged_chi2.py.

◆ raw [2/2]

lsst.jointcal.check_logged_chi2.Chi2Data.raw

Definition at line 53 of file check_logged_chi2.py.

◆ reduced [1/2]

np lsst.jointcal.check_logged_chi2.Chi2Data.reduced .ndarray
static

Definition at line 48 of file check_logged_chi2.py.

◆ reduced [2/2]

lsst.jointcal.check_logged_chi2.Chi2Data.reduced

Definition at line 55 of file check_logged_chi2.py.


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