Exemplo n.º 1
0
 def read_threshold_gain(self, attr):
     gain = _PilatusCamera.gain()
     if gain is None:
         gain = "not set"
     else:
         gain = AttrHelper.getDictKey(self.__ThresholdGain, gain)
     attr.set_value(gain)
Exemplo n.º 2
0
 def read_threshold_gain(self, attr):
     gain = _PilatusCamera.gain()
     if gain is None:
         gain = "not set"
     else:
         gain = AttrHelper.getDictKey(self.__ThresholdGain,gain)
     attr.set_value(gain)
Exemplo n.º 3
0
 def read_readout_geometry(self, attr):
     if _PilatusCamera.hasRoiCapability():
         image = _CtControl.image()
         hw_image = image.getHard()
         roi = hw_image.getRealRoi()
         rmode = AttrHelper.getDictKey(self.__ReadoutRoi, roi)
         attr.set_value(rmode)
     else:
         attr.set_value('UNKNOWN')
Exemplo n.º 4
0
 def read_readout_geometry(self, attr):
     if _PilatusCamera.hasRoiCapability():
         image = _CtControl.image()
         hw_image = image.getHard()
         roi = hw_image.getRealRoi()
         rmode = AttrHelper.getDictKey(self.__ReadoutRoi, roi)
         attr.set_value(rmode)
     else:
         attr.set_value('UNKNOWN')
Exemplo n.º 5
0
 def read_gateMode(self, attr):
     mode = _Mythen3Camera.getGateMode()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 6
0
 def read_continuousTrigger(self, attr):
     mode = _Mythen3Camera.getContinuousTrigger()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 7
0
 def read_rateCorrection(self, attr):
     mode = _Mythen3Camera.getRateCorrection()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 8
0
 def read_badChannelInterpolation(self, attr):
     mode = _Mythen3Camera.getBadChannelInterpolation()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 9
0
 def read_output2_signal_type(self, attr):        
     sig_type = _RayonixHsInterface.getOutputSignalType(RayonixHsAcq.CHANNEL_2)
     val = AttrHelper.getDictKey(self.__OutputSignalType, sig_type)
     attr.set_value(val)        
Exemplo n.º 10
0
 def read_useRawReadout(self, attr):
     mode = _Mythen3Camera.getUseRawReadout()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 11
0
 def read_cam_state(self, attr):
     status = _PilatusCamera.status()
     status = AttrHelper.getDictKey(self.__CamStatus, status)
     attr.set_value(status)
Exemplo n.º 12
0
 def read_fill_mode(self, attr):
     gapfill = _PilatusCamera.gapfill()
     gapfill = AttrHelper.getDictKey(self.__FillMode,gapfill)
     attr.set_value(gapfill)
Exemplo n.º 13
0
 def read_dataSource(self, attr):
     attr.set_value([
         AttrHelper.getDictKey(self.PyDataSrc,
                               _Xspress3Camera.getDataSource(i))
         for i in range(_Xspress3Camera.getNumChan())
     ])
Exemplo n.º 14
0
 def read_cam_state(self, attr):
     status = _PilatusCamera.status()
     status = AttrHelper.getDictKey(self.__CamStatus, status)
     attr.set_value(status)
Exemplo n.º 15
0
 def read_fill_mode(self, attr):
     gapfill = _PilatusCamera.gapfill()
     gapfill = AttrHelper.getDictKey(self.__FillMode, gapfill)
     attr.set_value(gapfill)
Exemplo n.º 16
0
 def read_triggered(self, attr):
     mode = _Mythen3Camera.getTriggered()
     attr.set_value(AttrHelper.getDictKey(self.__Switch, mode))
Exemplo n.º 17
0
 def read_outputSignalPolarity(self, attr):
     mode = _Mythen3Camera.getOutputSignalPolarity()
     attr.set_value(AttrHelper.getDictKey(self.__Polarity, mode))
Exemplo n.º 18
0
 def read_nbits(self, attr):
     nbits = _Mythen3Camera.getNbits()
     attr.set_value(AttrHelper.getDictKey(self.__Nbits, nbits))
Exemplo n.º 19
0
 def read_output2_id(self, attr):        
     id = _RayonixHsInterface.getOutputSignalID(RayonixHsAcq.CHANNEL_2)
     val = AttrHelper.getDictKey(self.__OutputSignalID, id)
     attr.set_value(val)        
Exemplo n.º 20
0
 def read_hwStatus(self, attr):
     status = _Mythen3Camera.getHwStatus()
     attr.set_value(AttrHelper.getDictKey(self.__Status, status))
Exemplo n.º 21
0
 def read_ComputingMode(self, attr):
     value_read = self.__peakFinderMgr.getComputingMode()
     attr.set_value(AttrHelper.getDictKey(self.__ComputingMode, value_read))
Exemplo n.º 22
0
 def read_type(self, attr):
     type = _HexitecCamera.getType()
     attr.set_value(AttrHelper.getDictKey(self.__ProcessType, type))