def __init__(self): baseinstrument.BaseInstrument.__init__(self) self.config_name = config.getNameByClass(self.__class__) if self.config_name is None: raise RuntimeError('%s was not found in your instruments.cfg' % (self.__class__.__name__,)) conf = config.getConfigured()[self.config_name] self.zplane = conf['zplane'] if 'height' in conf and 'width' in conf: self.configured_size = {'x': conf['width'], 'y': conf['height']} else: self.configured_size = None self.buffer = {} self.buffer_ready = {} self.bufferlock = threading.Lock() self.readoutcallback = None self.callbacks = {} self.exposure_timestamp = None
def __init__(self): baseinstrument.BaseInstrument.__init__(self) self.config_name = config.getNameByClass(self.__class__) if self.config_name is None: raise RuntimeError('%s was not found in your instruments.cfg' % (self.__class__.__name__, )) conf = config.getConfigured()[self.config_name] self.zplane = conf['zplane'] if 'height' in conf and 'width' in conf: self.configured_size = {'x': conf['width'], 'y': conf['height']} else: self.configured_size = None self.buffer = {} self.buffer_ready = {} self.bufferlock = threading.Lock() self.readoutcallback = None self.callbacks = {} self.exposure_timestamp = None
def __init__(self): dict.__init__(self) for name, cls in config.getConfigured().items(): self[name] = cls()
def __init__(self): baseinstrument.BaseInstrument.__init__(self) self.config_name = config.getNameByClass(self.__class__) self.cs = config.getConfigured()[self.config_name]['cs'] self.projection_submode_map = {}
def __init__(self): baseinstrument.BaseInstrument.__init__(self) self.config_name = config.getNameByClass(self.__class__) self.cs = config.getConfigured()[self.config_name]['cs']
def __init__(self): dict.__init__(self) for name,cls in config.getConfigured().items(): self[name] = cls()