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

Merged
merged 12 commits into from
Mar 7, 2025
Merged

Keysight VNA p5004b driver #6726

merged 12 commits into from
Mar 7, 2025

Conversation

HolmPhilip
Copy link
Contributor

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
@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 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.39%. Comparing base (c69e92d) to head (6bbe231).
Report is 453 commits behind head on main.

Files with missing lines Patch % Lines
...des/instrument_drivers/Keysight/Keysight_P5004B.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6726   +/-   ##
=======================================
  Coverage   69.38%   69.39%           
=======================================
  Files         340      342    +2     
  Lines       31334    31404   +70     
=======================================
+ Hits        21741    21792   +51     
- Misses       9593     9612   +19     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HolmPhilip
Copy link
Contributor Author

HolmPhilip commented Jan 9, 2025 via email

@jenshnielsen
Copy link
Collaborator

@HolmPhilip did you have a chance to look at the comments I left

@HolmPhilip
Copy link
Contributor Author

@jenshnielsen Sorry for the late response! I'm not sure about the attenuator options.
Incidentally, we have a meeting with KeySight on friday 6th, where I can ask them.
Can I get back to you at the end of next week?

@HolmPhilip
Copy link
Contributor Author

I've adjusted for your comments in the latest commit.

With regards to attenuator options:
For the P5004B the options are:
007, 010, 011, 080, 090, 904 and S97
As I understood from KeySight, these are related to low-level features that the user should be ignorant of.
So I have removed the attenuator options part in the P5004B class definition.

Please let me know if you disagree with this.

@jenshnielsen
Copy link
Collaborator

jenshnielsen commented Feb 19, 2025

@HolmPhilip Thanks looks good. Could you please add this to the __init__.py file in the Keysight folder so it appears in the docs and the public api and run the precommit hooks to fix formatting. Would also be nice with a news fragment to include this driver

@HolmPhilip
Copy link
Contributor Author

Hi Jens,
I've added it to the init.py file and run the pre-commit hooks now.

@jenshnielsen
Copy link
Collaborator

@HolmPhilip The pr looks good. Just need a few small fixes. I opened a pr against your branch with these here HolmPhilip#1 Could you merge this and then this should be ready to go

@jenshnielsen jenshnielsen enabled auto-merge March 7, 2025 12:28
@jenshnielsen jenshnielsen added this pull request to the merge queue Mar 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Mar 7, 2025
@jenshnielsen jenshnielsen added this pull request to the merge queue Mar 7, 2025
Merged via the queue into microsoft:main with commit 3f45d49 Mar 7, 2025
18 checks passed
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