From d62076128a7f5a194be25e0e53f2617ac00316d2 Mon Sep 17 00:00:00 2001 From: Oksana Shliakhtun Date: Tue, 31 Jan 2023 09:42:08 +0100 Subject: [PATCH] add comma between command and arguments Change-Id: Ibc3a9072140842d521ebb4840eecb180e69b134e --- frappy_psi/lakeshore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappy_psi/lakeshore.py b/frappy_psi/lakeshore.py index 2ebe1e6..e27b0eb 100644 --- a/frappy_psi/lakeshore.py +++ b/frappy_psi/lakeshore.py @@ -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(',')]