def __init__(self, config): self.amqp_client = gtxamqp.pool.pool.get(config.get('amqp', {})) self.url_root = config.get( 'risar_url_root', 'http://localhost:6600/risar/api/integration/').rstrip('/') Service.__init__(self) Resource.__init__(self)
def __init__(self): Service.__init__(self) self.seq = -1 self.freq = 4000 self.mag = 15.0 self.tamb = 3 self.tsky = self.tamb - 30
def __init__(self, parent, options, **kargs): Service.__init__(self) self.parent = parent self.options = options self.paused = False self.onBoot = True self.timeStatList = [] self.nrowsStatList = [] self.sunriseTask = task.LoopingCall(self.sunrise) setLogLevel(namespace='dbase', levelStr=options['log_level'])
def __init__(self, options): Service.__init__(self) self.options = options protocol_level = 'info' if self.options['log_messages'] else 'warn' setLogLevel(namespace='proto', levelStr=protocol_level) setLogLevel(namespace='serial', levelStr=self.options['log_level']) self.serport = None self.protocol = None self.endpoint = None self.factory = None
def __init__(self, options): Service.__init__(self) setLogLevel(namespace='stats', levelStr=options['log_level']) self.started = False self.options = options self.qsize = options['size'] self.wavelength = options['wavelength'] self.photodiode = options['photodiode'] if self.photodiode is not None: self.photodiode = '{:.6e}'.format(self.photodiode)
def __init__(self, state_manager, base_path, filters=None): Service.__init__(self) events.FileSystemEventHandler.__init__(self) self._filt = filters or {} # add a trailing slash if it's not already there self._base_path = osp.join(osp.normpath(base_path), "") verifyObject(IStateManager, state_manager) self._state_manager = state_manager
def __init__(self, parent, options, **kargs): Service.__init__(self) self.parent = parent self.options = options self.topics = [] self.regAllowed = False self.validate = options['validation'] setLogLevel(namespace='mqtt', levelStr=options['log_level']) self.tess_heads = [ t.split('/')[0] for t in self.options['tess_topics'] ] self.tess_tails = [ t.split('/')[2] for t in self.options['tess_topics'] ] if self.options['username'] == "": self.options['username'] = None self.options['password'] = None self.resetCounters()
def __init__(self, options): Service.__init__(self) setLogLevel(namespace='ReadingsService', levelStr=options['log_level']) self.options = options self.period = options['period'] self.nrounds = options['rounds'] self.central = options['central'] self.size = options['size'] self.readMode = options['read'] self.phot = { 'ref' : {'queue': None, 'info': None}, 'test': {'queue': None, 'info': None}, } self.curRound = 1 self.best = { 'zp' : list(), 'refFreq' : list(), 'testFreq' : list(), }
def __init__(self, options): Service.__init__(self) setLogLevel(namespace='as7262', levelStr=options['log_level']) self.options = options self.protocol = CommandLineProtocol()
def __init__(self, options): Service.__init__(self) setLogLevel(namespace='stats', levelStr=options['log_level']) self.started = False self.options = options self.qe_data = {}