Skip to content

Ami snapshot fix#8009

Merged
jenshnielsen merged 3 commits intomicrosoft:mainfrom
jenshnielsen:ami_snapshot_fix
Apr 7, 2026
Merged

Ami snapshot fix#8009
jenshnielsen merged 3 commits intomicrosoft:mainfrom
jenshnielsen:ami_snapshot_fix

Conversation

@jenshnielsen
Copy link
Copy Markdown
Collaborator

@jenshnielsen jenshnielsen commented Apr 7, 2026

This ensures the instrument can be snapshoottted without supressing errors. Note that a cleaner approach may be to skip adding the heater module if not enabled. This would however require restarting the driver if / when the module is enabled so I have opted for a simpler solution here.

@jenshnielsen jenshnielsen requested a review from a team as a code owner April 7, 2026 08:24
jenshnielsen and others added 2 commits April 7, 2026 10:28
Override snapshot_base in AMI430SwitchHeater to skip updating state,
in_persistent_mode, current, heat_time, and cool_time parameters when
the switch heater is not enabled. On real hardware these VISA queries
can fail when the heater is disabled, causing snapshot warnings.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 70.50%. Comparing base (fa47380) to head (1e95d68).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...strument_drivers/american_magnetics/AMI430_visa.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8009   +/-   ##
=======================================
  Coverage   70.50%   70.50%           
=======================================
  Files         333      333           
  Lines       32426    32436   +10     
=======================================
+ Hits        22862    22870    +8     
- Misses       9564     9566    +2     

☔ 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.

@jenshnielsen jenshnielsen added this pull request to the merge queue Apr 7, 2026
Merged via the queue into microsoft:main with commit 56dd10b Apr 7, 2026
18 checks passed
@jenshnielsen jenshnielsen deleted the ami_snapshot_fix branch April 7, 2026 12:20
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