add comma between command and arguments

Change-Id: Ibc3a9072140842d521ebb4840eecb180e69b134e
This commit is contained in:
Oksana Shliakhtun
2023-01-31 09:42:08 +01:00
parent 38ae301cda
commit d62076128a

View File

@ -35,7 +35,7 @@ class Ls340IO(StringIO):
class LakeShore(HasIO):
def set_par(self, cmd, *args):
head = cmd + ','.join([str(a) for a in args])
head = ','.join([cmd] + [f'{a:g}' for a in args])
tail = cmd.replace(' ', '? ')
reply = self.communicate(f'{head};{tail}')
return [float(num) for num in reply.split(',')]