Skip to content

Fix lakeshore336/335/372 snapshot bug - #8520

Open
Nikolaos Chatzaras (SnX59) wants to merge 9 commits into
microsoft:mainfrom
SnX59:fix_Lakeshore336_snapshot_bug
Open

Nikolaos Chatzaras (SnX59) wants to merge 9 commits into
microsoft:mainfrom
SnX59:fix_Lakeshore336_snapshot_bug

Conversation

@SnX59

Copy link
Copy Markdown

The 336's HTRSET has no output_type field, and its voltage outputs 3 & 4 don't support HTRSET at all. Group._separator_parser then mis-zipped parameter names against the shorter instrument response, producing one Snapshot: Could not update parameter warning per heater-setup parameter.

Model 335 and 372 behavior is unchanged. I scoped the fix to the reported 336 issue but perhaps it might be important to update those drivers too!

Updated the Lakeshore Model 336 driver to exclude output-type field for heater setup and disable heater setup for unpowered outputs.
Added parameters for heater output setup including output type, heater resistance, maximum current, and display settings. Enhanced functionality for heater output configuration.
@SnX59
Nikolaos Chatzaras (SnX59) requested a review from a team as a code owner September 21, 2026 12:03
Comment thread src/qcodes/instrument_drivers/Lakeshore/lakeshore_base.py Outdated
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.21%. Comparing base (cefdf44) to head (78a7dee).

Files with missing lines Patch % Lines
...nstrument_drivers/Lakeshore/Lakeshore_model_372.py 92.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8520      +/-   ##
==========================================
+ Coverage   72.19%   72.21%   +0.02%     
==========================================
  Files         307      307              
  Lines       32322    32353      +31     
==========================================
+ Hits        23336    23365      +29     
- Misses       8986     8988       +2     

☔ View full report in Codecov by Harness.
📢 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.

@SnX59

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Microsoft"

@SnX59

Copy link
Copy Markdown
Author

Move Lakeshore heater setup to  output subclasses and also extended the fix to the 335 and 372 models.
Removed spaces in setter queries for consistency.
@jenshnielsen

Copy link
Copy Markdown
Collaborator

Nikolaos Chatzaras (@SnX59) Looks good from a code perspective. Let me know if testing is needed on real hardware

@SnX59

Nikolaos Chatzaras (SnX59) commented Oct 2, 2026 •

Copy link
Copy Markdown
Author

Nikolaos Chatzaras (Nikolaos Chatzaras (@SnX59)) Looks good from a code perspective. Let me know if testing is needed on real hardware

I will playtest it on a Lakeshore336 to see that it works without any issues and then I'll complete the PR. Thanks for the support Jens Hedegaard Nielsen (@jenshnielsen)!

The earlier fix  LakeshoreBaseOutput no longer adds the heater setup parameters. The 4-field class LakeshoreBaseOutputWithHeaterSetup is used by 336 outputs 1 and 2. The 5-field class with an output type is used by the 335. 336 outputs 3 and 4 get no heater setup parameters. The 372 had only been moved onto the 5-field class so that its behaviour wouldn't change.
@SnX59 Nikolaos Chatzaras (SnX59) changed the title Fix lakeshore336 snapshot bug Fix lakeshore336/335/372 snapshot bug Oct 2, 2026

This branch has not been deployed

No deployments
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