-
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
Driver/infiniium additional parameters #1203
Driver/infiniium additional parameters #1203
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1203 +/- ##
=======================================
Coverage 80.16% 80.16%
=======================================
Files 49 49
Lines 6762 6762
=======================================
Hits 5421 5421
Misses 1341 1341 |
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.
the code looks ok.
I guess that the parameters that are settable can be snapshotted, but in general I do not see a big point since it is a measurement submodule, and it does not seem to have "settings".
That's also what I am thinking. They describe the state of the signal, not the state of the instrument. |
get_parser=float, | ||
unit='V') | ||
|
||
def _meas(self, cmd: str) -> str: |
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.
Do you want this to be a static method. Also imho the name is slightly misleading. How about _generate_meas_str
or some such thing?
…illiamHPNielsen/Qcodes into driver/Infiniium_additional_parameters
parameters | ||
""" | ||
# note: this is not really a channel, but InstrumentChannel does everything | ||
# a 'Submodule' class should do |
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.
We had a discussion in a bug report about renaming InstrumentChannel
for this reason (can't find the discussion right now though). Perhaps we should revisit?
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 can be very easily solved by renaming InstrumentChannel
class to SubModule
(or SubInstrument
, whatever) and adding InstrumentChannel = SubModule
after SubModule
class definition.
SubModule
seems like a good name. But what "should this class do"? Contain a piece of functionality with tight reference/coupling to the instrument that it is a part of?
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.
I like the name SubModule
too. I think InstrumentChannel
already is that class. If you guys would like to discuss this more, then let us perhaps open a separate issue.
I'd say this is ready to land. |
Merge: dada1fe 9deb12a Author: William H.P. Nielsen <[email protected]> Merge pull request #1203 from WilliamHPNielsen/driver/Infiniium_additional_parameters
Changes proposed in this pull request:
__init__
. If headers are on, instrument responses ping back the query as well as the value, and ourget_parser
s can't handle thatQuestion: should the measurement submodule be snapshotted?
@QCoDeS/core