From bb8f6ae390cdd386641ff97aa093b0e1e507c4e1 Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Mon, 20 May 2024 08:53:59 +0200 Subject: [PATCH] Fix set formatter --- src/qcodes/parameters/parameter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qcodes/parameters/parameter.py b/src/qcodes/parameters/parameter.py index bcf1aaf5299..52b61830022 100644 --- a/src/qcodes/parameters/parameter.py +++ b/src/qcodes/parameters/parameter.py @@ -56,8 +56,8 @@ def set_parameter_write(self: Parameter, *args) -> None: assert isinstance(cmd, str) # TODO it is possible to format str with additional args. # this does not seem to have been tested - cmd.format(*args) - return function(cmd) + formatted_cmd = cmd.format(*args) + return function(formatted_cmd) return set_parameter_write