-
Notifications
You must be signed in to change notification settings - Fork 322
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: Keysight_34465A overload value 9.9e37 to be np.inf instead #1929
Fix: Keysight_34465A overload value 9.9e37 to be np.inf instead #1929
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1929 +/- ##
==========================================
- Coverage 68.73% 68.72% -0.01%
==========================================
Files 155 155
Lines 19791 19798 +7
==========================================
+ Hits 13603 13607 +4
- Misses 6188 6191 +3 |
thanks @lakhotiaharshit Does this work if you read out a buffer with multiple datapoints? |
What happens with negative voltages. Is that even supported. Does it return a negative value? |
Yes, I think I have fixed that part in the code. I am also planning to test it on the actual instrument in the evening to have the final confirmation. Do not know about the negative voltage though. |
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.
Looks good! let know once the final testing on the instrument is done.
wrt, negative values - would be nice to catch it in this PR as well, but i'd say it's a nice-to-have for now.
Yes, fixed the PR to support negative voltage overload also. |
So the question that I didn't really raise but is relevant when you consider positive and negative values is. Should this not return +- inf rather than nan ? |
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.
looks great! and thanks for the tests!
Looks great but something seems to be up with the tests. |
Individually all tests are running fine however when we run together all the test after the test below are failing. I do not know the reason at the moment.
|
Following Mikhail's nice suggestion. I have ignored that particular test at the moment. The is marked not to run and a small reason is added. I will open a new card in qcodes debt so that at later point we can fix that test. |
In case the DMM tries to measure the voltage value outside the its range, it overloads and throws 9.9e37 instead of throwing an error. Here we substitute this number with np.nan.
Side note: The error query does not throw any error even though the instrument display shows in bold that instrument is overloaded.
To reproduce the error:

@jenshnielsen @astafan8