diff --git a/frappy_psi/lakeshore.py b/frappy_psi/lakeshore.py index 11d6fc04..9bfb2972 100644 --- a/frappy_psi/lakeshore.py +++ b/frappy_psi/lakeshore.py @@ -81,7 +81,7 @@ class HasLscIO(HasIO): response = self.communicate(msg).strip() if not converters: return response - values = sum((v.split(',') for v in response.split(';')), start=[]) + values = sum((v.split(',') for v in response.split(';')), []) if len(values) < len(converters): raise CommunicationFailedError( f'expected {len(converters)} values,' diff --git a/frappy_psi/lakeshore370.py b/frappy_psi/lakeshore370.py index 99449465..6705f37a 100644 --- a/frappy_psi/lakeshore370.py +++ b/frappy_psi/lakeshore370.py @@ -132,7 +132,7 @@ class Switcher(ls.HasLscIO, ChannelSwitcher): if channelno is None: self.status = 'ERROR', 'no enabled channel' return - self.command(f'SCAN {channelno}', 0) + self.command(f'SCAN', channelno, 0) def doPoll(self): """poll buttons @@ -193,7 +193,7 @@ class Switcher(ls.HasLscIO, ChannelSwitcher): self.measure_delay = chan.dwell def set_active_channel(self, chan): - self.command(f'SCAN {chan.channel}', 0) + self.command('SCAN', chan.channel, 0) self.value = chan.channel self.set_delays(chan) @@ -313,7 +313,7 @@ class SensorBase(Ls370, ls.SensorBase, Channel): self._last_range_change = time.monotonic() try: self.range, self.iexc, self.vexc = rng, iexc, vexc - self.log.warn('%r', self.range) + self.log.debug('%r', self.range) except Exception: # avoid raising errors on disabled channel self.log.exception('error') @@ -340,7 +340,7 @@ class SensorBase(Ls370, ls.SensorBase, Channel): if self.autorange: rng = max(rng, self.minrange) self.command(f'RDGRNG {self.channel}', iscur, exc, rng, 0, excoff) - self.log.info('write_rdgrng %g', rng) + self.log.debug('write_rdgrng %g', rng) self.read_range() @CommonReadHandler(inset_params)