LSST Applications g0603fd7c41+d727c1d375,g124d44cf3d+604aa34adb,g180d380827+5ffeb7c294,g1afd7665f7+eb25d4c773,g2079a07aa2+86d27d4dc4,g2305ad1205+89e8e9cf63,g2bbee38e9b+44a02a0554,g337abbeb29+44a02a0554,g33d1c0ed96+44a02a0554,g3a166c0a6a+44a02a0554,g3d1719c13e+9a7b30876f,g487adcacf7+719c5abdea,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+85bc5ede60,g858d7b2824+9a7b30876f,g991b906543+9a7b30876f,g99cad8db69+8994cf29ec,g9b9dfce982+0fdee8fa3c,g9ddcbc5298+9a081db1e4,ga1e77700b3+03d07e1c1f,gb0e22166c9+60f28cb32d,gb23b769143+9a7b30876f,gb3a676b8dc+e2510deafe,gb4b16eec92+8df1cf93fe,gba4ed39666+c2a2e4ac27,gbb8dafda3b+7edb7fc777,gbd998247f1+585e252eca,gc120e1dc64+79b8551dca,gc28159a63d+44a02a0554,gc3e9b769f7+20d5ea8805,gcf0d15dbbd+0fdee8fa3c,gdaeeff99f8+f9a426f77a,ge79ae78c31+44a02a0554,gee10cc3b42+585e252eca,w.2024.19
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: