Skip to content
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

Keysight VNA p5004b driver #6726

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

HolmPhilip
Copy link

Added \Qcodes\src\qcodes\instrument_drivers\Keysight\P5004B.py
Added \Qcodes\src\qcodes\instrument_drivers\Keysight\Keysight_P5004B.py
Both based on N52xx

Do you want me to make an example file?
Should this instead join QCodes contributing drivers?

Best regards,
Philip Holm from NQCP

@HolmPhilip HolmPhilip requested a review from a team as a code owner December 17, 2024 12:56
class P5004B(KeysightP5004B):
"""
Alias for backwards compatibility.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this driver has never existed in qcodes there is no need for creating this since there is no backwards compatibility. Please remove this file

**kwargs,
)

attenuators_options = {"219", "419"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you document with a comment what is significant for 219/419 respectively

@jenshnielsen
Copy link
Collaborator

@HolmPhilip Thanks for your contribution. I think its fine to merge it here since it's a shallow subclass of the existing driver. Could you please have a look at the inline comments and run the ruff formatter as well as follow the instructions from the bot and this should be good to go.

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 46.15385% with 7 lines in your changes missing coverage. Please review.

Project coverage is 69.37%. Comparing base (c69e92d) to head (36d1730).
Report is 58 commits behind head on main.

Files with missing lines Patch % Lines
...des/instrument_drivers/Keysight/Keysight_P5004B.py 36.36% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6726      +/-   ##
==========================================
- Coverage   69.38%   69.37%   -0.01%     
==========================================
  Files         340      342       +2     
  Lines       31334    31347      +13     
==========================================
+ Hits        21741    21747       +6     
- Misses       9593     9600       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HolmPhilip
Copy link
Author

HolmPhilip commented Jan 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants