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 | Protected Attributes | List of all members
lsst.meas.algorithms.maskStreaks.LineCollection Class Reference

Public Member Functions

 __init__ (self, rhos, thetas, sigmas=None)
 
 __len__ (self)
 
 __getitem__ (self, index)
 
 __iter__ (self)
 
 __repr__ (self)
 
 rhos (self)
 
 thetas (self)
 
 sigmas (self)
 
 append (self, newLine)
 

Protected Attributes

 _lines
 

Detailed Description

Collection of `Line` objects.

Parameters
----------
rhos : `np.ndarray`
    Array of `Line` rho parameters.
thetas : `np.ndarray`
    Array  of `Line` theta parameters.
sigmas : `np.ndarray`, optional
    Array of `Line` sigma parameters.

Definition at line 50 of file maskStreaks.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.algorithms.maskStreaks.LineCollection.__init__ ( self,
rhos,
thetas,
sigmas = None )

Definition at line 63 of file maskStreaks.py.

63 def __init__(self, rhos, thetas, sigmas=None):
64 if sigmas is None:
65 sigmas = np.zeros(len(rhos))
66
67 self._lines = [Line(rho, theta, sigma) for (rho, theta, sigma) in
68 zip(rhos, thetas, sigmas)]
69

Member Function Documentation

◆ __getitem__()

lsst.meas.algorithms.maskStreaks.LineCollection.__getitem__ ( self,
index )

Definition at line 73 of file maskStreaks.py.

73 def __getitem__(self, index):
74 return self._lines[index]
75

◆ __iter__()

lsst.meas.algorithms.maskStreaks.LineCollection.__iter__ ( self)

Definition at line 76 of file maskStreaks.py.

76 def __iter__(self):
77 return iter(self._lines)
78

◆ __len__()

lsst.meas.algorithms.maskStreaks.LineCollection.__len__ ( self)

Definition at line 70 of file maskStreaks.py.

70 def __len__(self):
71 return len(self._lines)
72

◆ __repr__()

lsst.meas.algorithms.maskStreaks.LineCollection.__repr__ ( self)

Definition at line 79 of file maskStreaks.py.

79 def __repr__(self):
80 joinedString = ", ".join(str(line) for line in self._lines)
81 return textwrap.shorten(joinedString, width=160, placeholder="...")
82

◆ append()

lsst.meas.algorithms.maskStreaks.LineCollection.append ( self,
newLine )
Add line to current collection of lines.

Parameters
----------
newLine : `Line`
    `Line` to add to current collection of lines

Definition at line 95 of file maskStreaks.py.

95 def append(self, newLine):
96 """Add line to current collection of lines.
97
98 Parameters
99 ----------
100 newLine : `Line`
101 `Line` to add to current collection of lines
102 """
103 self._lines.append(copy.copy(newLine))
104
105

◆ rhos()

lsst.meas.algorithms.maskStreaks.LineCollection.rhos ( self)

Definition at line 84 of file maskStreaks.py.

84 def rhos(self):
85 return np.array([line.rho for line in self._lines])
86

◆ sigmas()

lsst.meas.algorithms.maskStreaks.LineCollection.sigmas ( self)

Definition at line 92 of file maskStreaks.py.

92 def sigmas(self):
93 return np.array([line.sigma for line in self._lines])
94

◆ thetas()

lsst.meas.algorithms.maskStreaks.LineCollection.thetas ( self)

Definition at line 88 of file maskStreaks.py.

88 def thetas(self):
89 return np.array([line.theta for line in self._lines])
90

Member Data Documentation

◆ _lines

lsst.meas.algorithms.maskStreaks.LineCollection._lines
protected

Definition at line 67 of file maskStreaks.py.


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