Skip to content

Commit

Permalink
Fix set formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed May 20, 2024
1 parent 5e8a880 commit bb8f6ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qcodes/parameters/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bb8f6ae

Please sign in to comment.