lsst.afw  16.0-19-g2da375352+1
Public Member Functions | List of all members
lsst.afw.cameraGeom.detectorCollection.DetectorCollection Class Reference

An immutable collection of Detectors that can be accessed by name or ID. More...

Inheritance diagram for lsst.afw.cameraGeom.detectorCollection.DetectorCollection:
lsst.afw.cameraGeom.camera.Camera

Public Member Functions

def __init__ (self, detectorList)
 Construct a DetectorCollection. More...
 
def __iter__ (self)
 Support the iter function: return an iterator over all detectors in this collection. More...
 
def __len__ (self)
 Support the len function: return the number of detectors. More...
 
def __getitem__ (self, key)
 Support the [key] operator: return the specified detector. More...
 
def __contains__ (self, key)
 Implement the "in" operator: return true if the specified detector is in the collection. More...
 
def getNameIter (self)
 Get an iterator over detector names. More...
 
def getIdIter (self)
 Get an iterator over detector IDs. More...
 
def getFpBBox (self)
 Return a focal plane bounding box that encompasses all detectors. More...
 

Detailed Description

An immutable collection of Detectors that can be accessed by name or ID.

Definition at line 26 of file detectorCollection.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__init__ (   self,
  detectorList 
)

Construct a DetectorCollection.

Parameters
[in]detectorLista sequence of detectors in index order

Definition at line 30 of file detectorCollection.py.

Member Function Documentation

◆ __contains__()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__contains__ (   self,
  key 
)

Implement the "in" operator: return true if the specified detector is in the collection.

Parameters
[in]keydetector name or ID

Definition at line 66 of file detectorCollection.py.

◆ __getitem__()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__getitem__ (   self,
  key 
)

Support the [key] operator: return the specified detector.

Parameters
[in]keydetector name or ID

Definition at line 56 of file detectorCollection.py.

◆ __iter__()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__iter__ (   self)

Support the iter function: return an iterator over all detectors in this collection.

Definition at line 46 of file detectorCollection.py.

◆ __len__()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.__len__ (   self)

Support the len function: return the number of detectors.

Definition at line 51 of file detectorCollection.py.

◆ getFpBBox()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getFpBBox (   self)

Return a focal plane bounding box that encompasses all detectors.

Definition at line 86 of file detectorCollection.py.

◆ getIdIter()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getIdIter (   self)

Get an iterator over detector IDs.

Definition at line 81 of file detectorCollection.py.

◆ getNameIter()

def lsst.afw.cameraGeom.detectorCollection.DetectorCollection.getNameIter (   self)

Get an iterator over detector names.

Definition at line 76 of file detectorCollection.py.


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