-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4412 from jenshnielsen/add_parameter_return
Return created parameter from add_parameter
- Loading branch information
Showing
12 changed files
with
585 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
`InstrumentBase.add_parameter` now returns the created parameter. | ||
This allows explicitly assigning the parameter as an attribute on | ||
the instrument class. This in turn enables type checkers and | ||
documentation tools to detect the existence and type of the | ||
parameter statically. | ||
|
||
QCoDeS ships with a tool to automatically refactor instruments in this way. To use | ||
this tool qcodes should be installed with the refactor option e.g. ``pip install qcodes[refactor]`` | ||
|
||
See `Creating-Instrument-Drivers <../examples/writing_drivers/Creating-Instrument-Drivers.ipynb>`__ | ||
for more details. | ||
|
||
It is the plan to transform all drivers shipping with QCoDeS in this way | ||
as soon as possible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.