Skip to content

Conversation

@trappitsch
Copy link
Contributor

Heavily copied from Lakeshore340 class and provides the same functionality for the Model 336. Communications seem different as well as channel addressing.

At the moment, there's only reading the temperatures of the four input channels implemented and no other functionality (reason: that's really all I need for now).

One thing: since this device requires odd parity and bitsize 7, these arguments are now forwarded as **kwargs to the serial manager and from there to pyserial when opening the connection.

LMK if you have a wishlist for further commands to be implemented or if somebody has a whish. As the device is here, I'd be happy to implement and test further if need be :) Figured I submit this in a barebones state as it initializes the comms and can also serve as a base for future extension.

@codecov
Copy link

codecov bot commented Jul 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.19%. Comparing base (646bf4c) to head (f7dd8b0).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #444   +/-   ##
=======================================
  Coverage   99.19%   99.19%           
=======================================
  Files          93       94    +1     
  Lines        9545     9561   +16     
=======================================
+ Hits         9468     9484   +16     
  Misses         77       77           
Flag Coverage Δ
unittests 99.19% <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.

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

@scasagrande
Copy link
Contributor

looks good! I don't know why codecov is complaining about coverage here, a quick look indicates to me that those "missing lines" are indeed covered by your tests 🤔

@trappitsch
Copy link
Contributor Author

actually, they are not... copy,paste error in the tests. sorry...

@scasagrande
Copy link
Contributor

HA!

@trappitsch
Copy link
Contributor Author

HA!

yeah, codecov did the right thing and I didn't. good it's there

@scasagrande scasagrande merged commit de3c700 into instrumentkit:main Jul 4, 2025
11 checks passed
@trappitsch
Copy link
Contributor Author

Thanks @scasagrande

@trappitsch trappitsch deleted the lakeshore_model336 branch July 4, 2025 14:24
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