Exemplo n.º 1
0
    def __init__(self, cl, name):
        self.__peakFinderMgr = None

        self.__ComputingMode = {'MAXIMUM': 0, 'CM': 1}

        BasePostProcess.__init__(self, cl, name)
        PeakFinderDeviceServer.init_device(self)
Exemplo n.º 2
0
 def __init__(self, cl, name):
     self.__roi2spectrumMgr = None
     self.__roiName2ID = {}
     self.__roiID2Name = {}
     self.__currentRoiId = 0
     BasePostProcess.__init__(self, cl, name)
     Roi2spectrumDeviceServer.init_device(self)
Exemplo n.º 3
0
    def __init__(self,cl, name):
	self.__roi2spectrumMgr = None
        self.__roiName2ID = {}
        self.__roiID2Name = {}
        self.__currentRoiId = 0
	BasePostProcess.__init__(self,cl,name)
	Roi2spectrumDeviceServer.init_device(self)
Exemplo n.º 4
0
    def __init__(self,cl, name):
	self.__roiCounterMgr = None
        self.__roiName2ID = {}
        self.__roiID2Name = {}
        self.__currentRoiId = 0
	BasePostProcess.__init__(self,cl,name)
	RoiCounterDeviceServer.init_device(self)
        try:
            ctControl = _control_ref()
            config = ctControl.config()

            class _RoiConfigSave(Core.CtConfig.ModuleTypeCallback) :
                def __init__(self,cnt):
                    Core.CtConfig.ModuleTypeCallback.__init__(self,"RoiCounters")
                    self.__cnt = weakref.ref(cnt)
                def store(self) :
                    cnt = self.__cnt()
                    return cnt.get_current_config()
                def restore(self,c) :
                    cnt = self.__cnt()
                    cnt.apply_config(c)

            self.__roiConfigsave = _RoiConfigSave(self)
            config.registerModule(self.__roiConfigsave)
        except AttributeError:
            pass
Exemplo n.º 5
0
    def __init__(self, cl, name):
        self.__azimuthalIntegratorTask = None
        self.__jsonConfig = None
        self.__pyFAISink = None
        self.get_device_properties(self.get_device_class())

        BasePostProcess.__init__(self, cl, name)
        AzimuthalIntegratonDeviceServer.init_device(self)
Exemplo n.º 6
0
    def __init__(self, cl, name):
        self.__backGroundTask = None
        self.__backGroundImage = Core.Processlib.Data()
        self.get_device_properties(self.get_device_class())
        self.__deleteDarkAfterRead = False

        BasePostProcess.__init__(self, cl, name)
        BackgroundSubstractionDeviceServer.init_device(self)
Exemplo n.º 7
0
    def __init__(self, cl, name):
        self.__maskTask = None
        self.__maskImage = Core.Processlib.Data()

        self.__Type = {"STANDARD": 0, "DUMMY": 1}

        BasePostProcess.__init__(self, cl, name)
        MaskDeviceServer.init_device(self)
    def __init__(self,cl,name) :
        self.__backGroundTask = None
        self.__backGroundImage = Core.Processlib.Data()
	self.get_device_properties(self.get_device_class())
	self.__deleteDarkAfterRead = False

        BasePostProcess.__init__(self,cl,name)
        BackgroundSubstractionDeviceServer.init_device(self)
Exemplo n.º 9
0
    def __init__(self, cl, name):
        self.__maskTask = None
        self.__maskImage = Core.Processlib.Data()

        self.__Type = {'STANDARD': 0, 'DUMMY': 1}

        BasePostProcess.__init__(self, cl, name)
        MaskDeviceServer.init_device(self)
Exemplo n.º 10
0
    def __init__(self, cl, name):
        self.__flatFieldTask = None
        self.__normalize = True

        self.__flatFieldImage = Core.Processlib.Data()

        BasePostProcess.__init__(self, cl, name)
        FlatfieldDeviceServer.init_device(self)
Exemplo n.º 11
0
    def __init__(self,cl, name):
	self.__peakFinderMgr = None
        
        self.__ComputingMode = {'MAXIMUM' : 0,
                                'CM' : 1}

	BasePostProcess.__init__(self,cl,name)
	PeakFinderDeviceServer.init_device(self)
Exemplo n.º 12
0
    def __init__(self,cl,name) :
        self.__flatFieldTask = None
        self.__normalize = True

        self.__flatFieldImage = Core.Processlib.Data()
        
        BasePostProcess.__init__(self,cl,name)
        FlatfieldDeviceServer.init_device(self)
Exemplo n.º 13
0
 def __init__(self, cl, name):
     self.__HDF5SavingTask = None
     self.__HDF5Sink = None
     self.__HDF5Writer = None
     self.get_device_properties(self.get_device_class())
     self.__extension = ""
     self.__subdir = None
     BasePostProcess.__init__(self, cl, name)
     HDF5SavingDeviceServer.init_device(self)
Exemplo n.º 14
0
 def __init__(self, cl, name):
     self.__azimuthalIntegratorTask = None
     self.__jsonConfig = None
     self.__pyFAISink = None
     self.get_device_properties(self.get_device_class())
     self.__extension = ""
     self.__subdir = None
     BasePostProcess.__init__(self, cl, name)
     AzimuthalIntegrationDeviceServer.init_device(self)
Exemplo n.º 15
0
 def __init__(self, cl, name):
     self.__HDF5SavingTask = None
     self.__HDF5Sink = None
     self.__HDF5Writer = None
     self.get_device_properties(self.get_device_class())
     self.__extension = ""
     self.__subdir = None
     BasePostProcess.__init__(self, cl, name)
     HDF5SavingDeviceServer.init_device(self)
Exemplo n.º 16
0
    def __init__(self, cl, name):
        self.__Task = None
        self.get_device_properties(self.get_device_class())
        BasePostProcess.__init__(self, cl, name)
        DistortionCorrectionDeviceServer.init_device(self)

        self.__spline_filename = None
        self.__darkcurrent_filename = None
        self.__flatfield_filename = None
        self.__pyFAISink = None
Exemplo n.º 17
0
    def __init__(self, cl, name):
        self.__Task = None
        self.get_device_properties(self.get_device_class())
        BasePostProcess.__init__(self, cl, name)
        DistortionCorrectionDeviceServer.init_device(self)

        self.__pyFAISink = None
        self.__subdir = None
        self.__extension = None
        self.__spline_filename = None
        self.__darkcurrent_filename = None
        self.__flatfield_filename = None
Exemplo n.º 18
0
 def __getattr__(self, name):
     try:
         return BasePostProcess.__getattr__(self, name)
     except AttributeError:
         # ask the help to not store object ref (object attribute functions)
         # into  __dict__, mask task is recreated everytime the plugin is stopped/started
         return get_attr_4u(self, name, self.__maskTask, update_dict=False)
Exemplo n.º 19
0
    def __init__(self, cl, name):
        self.__roiCounterMgr = None

        BasePostProcess.__init__(self, cl, name)
        RoiCounterDeviceServer.init_device(self)
Exemplo n.º 20
0
 def __getattr__(self, name):
     try:
         return BasePostProcess.__getattr__(self, name)
     except AttributeError:
         return get_attr_4u(self, name, self.__maskTask)
Exemplo n.º 21
0
    def __init__(self, cl, name):
        self.__roi2spectrumMgr = None

        BasePostProcess.__init__(self, cl, name)
        Roi2spectrumDeviceServer.init_device(self)
Exemplo n.º 22
0
 def __getattr__(self, name):
     try:
         return BasePostProcess.__getattr__(self, name)
     except AttributeError:
         return get_attr_4u(self, name, self.__maskTask)
Exemplo n.º 23
0
    def __init__(self,cl, name):
	self.__roi2spectrumMgr = None
                
	BasePostProcess.__init__(self,cl,name)
	Roi2spectrumDeviceServer.init_device(self)
Exemplo n.º 24
0
    def __init__(self,cl, name):
	self.__roiCounterMgr = None
                
	BasePostProcess.__init__(self,cl,name)
	RoiCounterDeviceServer.init_device(self)