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

[QHC-840] Raise an error if qdac input values are outside of the range #865

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

flavie-lebars
Copy link
Collaborator

No description provided.

@flavie-lebars flavie-lebars requested a review from fedonman January 8, 2025 14:35
Copy link

linear bot commented Jan 8, 2025

Copy link

🔗Pullpo.io Slack channel

Copy link

pullpo-for-slack bot commented Jan 8, 2025

AI Analysis

Review:

The addition of a check to ensure the ramping rate falls within the valid range before setting it on a channel is a good practice to prevent errors and maintain data integrity. This change shows attention to detail and enhances the robustness of the code.

Detailed file changes

(dropdown):

In qdevil_qdac2.py:

  • Added a check to ensure ramping rate is within the valid range before setting the rate on a channel.

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.30%. Comparing base (872e0b8) to head (0c54472).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #865   +/-   ##
=======================================
  Coverage   97.30%   97.30%           
=======================================
  Files         231      231           
  Lines        8273     8281    +8     
=======================================
+ Hits         8050     8058    +8     
  Misses        223      223           
Flag Coverage Δ
unittests 97.30% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Collaborator

@fedonman fedonman left a comment

Choose a reason for hiding this comment

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

Great job and great tests! Left a minor comment, and is ready to go.

src/qililab/instruments/qdevil/qdevil_qdac2.py Outdated Show resolved Hide resolved
@fedonman fedonman changed the title raise an error if qdac input values are outside of the range [QHC-840] Raise an error if qdac input values are outside of the range Jan 9, 2025
tests/instruments/qdevil/test_qdevil_qdac2.py Outdated Show resolved Hide resolved
tests/instruments/qdevil/test_qdevil_qdac2.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@fedonman fedonman left a comment

Choose a reason for hiding this comment

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

Great work!

italy-approved

@flavie-lebars flavie-lebars merged commit 05340c9 into main Jan 14, 2025
6 checks passed
@flavie-lebars flavie-lebars deleted the QHC-840-Limit-QDAC-and-SPI-ramping-rate branch January 14, 2025 08:34
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.

3 participants