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(',')]