Skip to content

Commit

Permalink
Code updated based on review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuan Ren committed Nov 13, 2024
1 parent 7e720f6 commit 4f11080
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/changes/newsfragments/6599.new
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Added a new feature to find links in a parameter chain by parameter type
Added new methods to find instruments in a parameter chain by parameter type
2 changes: 1 addition & 1 deletion src/qcodes/extensions/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,5 +287,5 @@ def get_sole_instrument_from_chain(
type_strs = [instr_type.__name__ for instr_type in instrument_type]
error_msg_1 = f"Expected only a single instrument of types {type_strs} but found {len(instruments)}: \n"

raise ValueError(error_msg_1 + f"{[instr.name for instr in instruments]}")
raise ValueError(f"{error_msg_1} {[instr.name for instr in instruments]}")
return instruments[0]

0 comments on commit 4f11080

Please sign in to comment.