LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | List of all members
lsst.pipe.tasks.maskStreaks.LineCollection Class Reference

Public Member Functions

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

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 137 of file maskStreaks.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.pipe.tasks.maskStreaks.LineCollection.__init__ (   self,
  rhos,
  thetas,
  sigmas = None 
)

Definition at line 150 of file maskStreaks.py.

150  def __init__(self, rhos, thetas, sigmas=None):
151  if sigmas is None:
152  sigmas = np.zeros(len(rhos))
153 
154  self._lines = [Line(rho, theta, sigma) for (rho, theta, sigma) in
155  zip(rhos, thetas, sigmas)]
156 

Member Function Documentation

◆ __getitem__()

def lsst.pipe.tasks.maskStreaks.LineCollection.__getitem__ (   self,
  index 
)

Definition at line 160 of file maskStreaks.py.

160  def __getitem__(self, index):
161  return self._lines[index]
162 

◆ __iter__()

def lsst.pipe.tasks.maskStreaks.LineCollection.__iter__ (   self)

Definition at line 163 of file maskStreaks.py.

163  def __iter__(self):
164  return iter(self._lines)
165 

◆ __len__()

def lsst.pipe.tasks.maskStreaks.LineCollection.__len__ (   self)

Definition at line 157 of file maskStreaks.py.

157  def __len__(self):
158  return len(self._lines)
159 

◆ __repr__()

def lsst.pipe.tasks.maskStreaks.LineCollection.__repr__ (   self)

Definition at line 166 of file maskStreaks.py.

166  def __repr__(self):
167  joinedString = ", ".join(str(line) for line in self._lines)
168  return textwrap.shorten(joinedString, width=160, placeholder="...")
169 

◆ append()

def lsst.pipe.tasks.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 178 of file maskStreaks.py.

178  def append(self, newLine):
179  """Add line to current collection of lines.
180 
181  Parameters
182  ----------
183  newLine : `Line`
184  `Line` to add to current collection of lines
185  """
186  self._lines.append(copy.copy(newLine))
187 
188 
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
Definition: functional.cc:33

◆ rhos()

def lsst.pipe.tasks.maskStreaks.LineCollection.rhos (   self)

Definition at line 171 of file maskStreaks.py.

171  def rhos(self):
172  return np.array([line.rho for line in self._lines])
173 

◆ thetas()

def lsst.pipe.tasks.maskStreaks.LineCollection.thetas (   self)

Definition at line 175 of file maskStreaks.py.

175  def thetas(self):
176  return np.array([line.theta for line in self._lines])
177 

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