22 __all__ = [
"DetectorBase", 
"DetectorTypeValNameDict", 
"DetectorTypeNameValDict"]
 
   25 from .detector 
import DetectorBase, DetectorType
 
   27 DetectorTypeValNameDict = {
 
   28     DetectorType.SCIENCE: 
"SCIENCE",
 
   29     DetectorType.FOCUS: 
"FOCUS",
 
   30     DetectorType.GUIDER: 
"GUIDER",
 
   31     DetectorType.WAVEFRONT: 
"WAVEFRONT",
 
   34 DetectorTypeNameValDict = {val: key 
for key, val 
in 
   35                            DetectorTypeValNameDict.items()}
 
   41         return (self[i] 
for i 
in range(len(self)))
 
   44         if config 
is not None:
 
   45             self.setSerial(config.serial)
 
   47             self.setPhysicalType(config.physicalType)
 
   48             self.setBBox(config.bbox)
 
   49             self.setPixelSize(config.pixelSize)
 
   50             self.setOrientation(config.orientation)
 
   51             self.setCrosstalk(config.getCrosstalk(numAmps))