-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix keithley 2600 formatting #1301
Fix keithley 2600 formatting #1301
Conversation
Correct formating to allow setting of low curr limits, add docstrings and validators to paramters
Codecov Report
@@ Coverage Diff @@
## master #1301 +/- ##
=======================================
Coverage 72.56% 72.56%
=======================================
Files 74 74
Lines 8456 8456
=======================================
Hits 6136 6136
Misses 2320 2320 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
@@ -156,13 +157,22 @@ def __init__(self, parent: Instrument, name: str, channel: str) -> None: | |||
set_cmd='{}.source.rangev={}'.format(channel, | |||
'{:.4f}'), | |||
unit='V', | |||
docstring='The range used when sourcing voltage' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
(dot and space) needed after this line?
get_parser=float, | ||
docstring='Number of power line cyclesm, used' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the space needed after "used"?
@@ -173,37 +183,53 @@ def __init__(self, parent: Instrument, name: str, channel: str) -> None: | |||
set_cmd='{}.source.rangei={}'.format(channel, | |||
'{:.4f}'), | |||
unit='A', | |||
docstring='The range used when sourcing current' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space?
unit='A', | ||
docstring='The range to perform current measurements' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space?
'in. This affects the range and the ' | ||
'precision of the measurement. ' | ||
'Note that if you both measure and source ' | ||
'current this will have no effect set ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comma before "set"?
Merge: 8979f3b 5d7f738 Author: William H.P. Nielsen <[email protected]> Merge pull request #1301 from jenshnielsen/fix_keithley_2600_formatting
Fix formatting of set commands with more than 4 significant digits after the comma. The instrument supports exponential notation so there is no need for specific formatting.
Also took the chance to add some validators, docstrings and typehints