LSST Applications g0265f82a02+0e5473021a,g02d81e74bb+bd2ed33bd6,g1470d8bcf6+c6d6eb38e2,g14a832a312+9d12ad093c,g2079a07aa2+86d27d4dc4,g2305ad1205+91a32aca49,g295015adf3+88246b6574,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g3ddfee87b4+c34e8be1fa,g487adcacf7+85dcfbcc36,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+ea1711114f,g5a732f18d5+53520f316c,g64a986408d+bd2ed33bd6,g858d7b2824+bd2ed33bd6,g8a8a8dda67+585e252eca,g99cad8db69+016a06b37a,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+ef4e3a5875,gb0e22166c9+60f28cb32d,gb6a65358fc+0e5473021a,gba4ed39666+c2a2e4ac27,gbb8dafda3b+b6d7b42999,gc120e1dc64+f745648b3a,gc28159a63d+0e5473021a,gcf0d15dbbd+c34e8be1fa,gdaeeff99f8+f9a426f77a,ge6526c86ff+508d0e0a30,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gf18bd8381d+8d59551888,gf1cff7945b+bd2ed33bd6,w.2024.16
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: