-
Notifications
You must be signed in to change notification settings - Fork 321
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
Keithley2400 driver #235
Keithley2400 driver #235
Conversation
self.add_parameter('resistance', | ||
get_cmd=':READ?', | ||
get_parser=self._resistance_parser, | ||
label='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.
This label is probably not correct?
And the units neither?
Issues
======
- Added 8
Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py 3
See the complete overview on Codacy |
MerlinSmiler = [float(x) for x in msg.split(',')] | ||
return MerlinSmiler[0] | ||
|
||
def _curr_parser(self, msg): |
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.
Issue found: Method could be a function
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.
Issue found: Method could be a function
Issues
======
- Added 8
Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py 3
See the complete overview on Codacy |
def reset(self): | ||
self.write(':*RST') | ||
|
||
def _volt_parser(self, msg): |
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.
Issue found: Method could be a function
label='Voltage', | ||
units='V') | ||
|
||
self.add_parameter('curr', |
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.
Issue found: Trailing whitespace
|
||
self.add_parameter('volt', | ||
get_cmd=':READ?', | ||
get_parser=self._volt_parser, |
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.
Issue found: Trailing whitespace
MerlinSmiler = [float(x) for x in msg.split(',')] | ||
return MerlinSmiler[0] | ||
|
||
def _curr_parser(self, msg): |
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.
Issue found: Method could be a function
MerlinSmilerIkke = [float(x) for x in msg.split(',')] | ||
return MerlinSmilerIkke[1] | ||
|
||
def _resistance_parser(self, msg): |
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.
Issue found: Method could be a function
|
||
self.add_parameter('resistance', | ||
get_cmd=':READ?', | ||
get_parser=self._resistance_parser, |
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.
Issue found: Trailing whitespace
else: | ||
raise AttributeError('Mode does not exist') | ||
self.write(':SOUR:FUNC {:s}'.format(msg)) | ||
|
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.
Issue found: Trailing whitespace
|
||
self.add_parameter('curr', | ||
get_cmd=':READ?', | ||
get_parser=self._curr_parser, |
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.
Issue found: Trailing whitespace
Issues
======
- Added 8
Complexity increasing per file
==============================
- qcodes/instrument_drivers/tektronix/Keithley_2400.py 3
See the complete overview on Codacy |
This is a clean-up of PR microsoft#235. I suspect buggy behaviour but have not tested the driver.
This is now superseded by PR #488 I'm closing this PR and deleting the branch. |
clean-up of PR #235. I suspect buggy behaviour but have not tested the driver.
Changes proposed in this pull request:
@giulioungaretti @alexcjohnson @MerlinSmiles