MaskInfo¶
- class lsst.cbp.MaskInfo(name, defaultHole, holePositions, holeNames=None)¶
- Bases: - object- Information about a CBP mask. - Parameters:
- namestr
- Name of mask. 
- defaultHolestrorint
- Name or index of default hole. 
- holePositionsiterableof (float,float)
- Position of a fiducial point for each hole in the mask (x, y mm). 
- holeNamesiterableofstror None
- Name of each hole in the mask, in the same order as - holePositions. If None then set name = str(index) for each hole.
 
- name
- Raises:
 - Notes - Attributes - Attributes Summary - An iterable of hole names, in index order (read only) - The number of holes (read only) - Methods Summary - asHoleName(hole)- Read a hole index, name or None as a name, and validate it. - getHolePos(beam)- Return the position of a hole in focal plane x,y mm. - Attributes Documentation - holeNames¶
- An iterable of hole names, in index order (read only) 
 - numHoles¶
- The number of holes (read only) 
 - Methods Documentation - asHoleName(hole)¶
- Read a hole index, name or None as a name, and validate it. - Parameters:
- Raises:
- LookupErrorif beam is an integer and is out of range
- or if beam is a string and the name is unknown.