diff --git a/secop_psi/sea.py b/secop_psi/sea.py index 905340a..535b8a4 100644 --- a/secop_psi/sea.py +++ b/secop_psi/sea.py @@ -315,7 +315,7 @@ class SeaClient(ProxyClient, Module): elif reply is None: reply = line.strip() else: - raise HardwareError('SEA: superfluous reply %r to %r' % (reply, cmd)) + self.log.info('SEA: superfluous reply %r to %r', reply, cmd) if errors: raise HardwareError('; '.join(errors)) return reply @@ -413,7 +413,7 @@ class SeaModule(Module): if result[0]['path'] != '': pass # TODO: check these cases result[0]['key'] = 'value' - logger.info('PARAMS %s %r', name, result) + # logger.info('PARAMS %s %r', name, result) base = descr['base'] params = descr['params'] extra_module_set = cfgdict.pop('extra_modules', ()) @@ -466,12 +466,12 @@ class SeaModule(Module): extra_modules[name + '.' + key] = sea_object, base, paramdesc continue # skip this parameter path2param[hdbpath] = (name, key) - logger.info('PARAM %s %s %s', hdbpath, name, key) + # logger.info('PARAM %s %s %s', hdbpath, name, key) attributes[key] = pobj # if hasattr(cls, 'read_' + key): # print('override %s.read_%s' % (cls.__name__, key)) - def rfunc(self, cmd='hval /sics/%s/%s' % (sea_object, path)): + def rfunc(self, cmd='hval %s/%s' % (base, path)): print('READ', cmd) reply = self._iodev.query(cmd) print('REPLY', reply) @@ -601,4 +601,4 @@ class SeaDrivable(SeaModule, Drivable): self.target = value def stop(self): - self._iodev.query('%s is_running 0' % self.sea_object) \ No newline at end of file + self._iodev.query('%s is_running 0' % self.sea_object)