Skip to content

Commit

Permalink
Fix get formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed May 20, 2024
1 parent 946f22d commit 5e8a880
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 @@ -117,8 +117,8 @@ def get_parameter_ask(self: Parameter, *args) -> ParamRawDataType:
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 get_parameter_ask

Expand Down

0 comments on commit 5e8a880

Please sign in to comment.