-
Notifications
You must be signed in to change notification settings - Fork 73
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
Feat/close instruments #376
Feat/close instruments #376
Conversation
Sort of addresses #215. I can add an actual |
Sorry for the delay Looks reasonable to me I need to fix CI but then I'll get your PR merged in: #374 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update branch to bring in the other fixes
just 1 change requested
tests/test_base_instrument.py
Outdated
@@ -8,6 +8,8 @@ | |||
|
|||
import socket | |||
import io | |||
import unittest | |||
from instruments.abstract_instruments import instrument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please sort and group imports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't have these import there in the first place. Good catch.
Codecov Report
@@ Coverage Diff @@
## main #376 +/- ##
=======================================
Coverage 99.01% 99.01%
=======================================
Files 87 87
Lines 8849 8855 +6
=======================================
+ Hits 8762 8768 +6
Misses 87 87
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d021392
to
398bf1f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! thank you for your contribution
Allows for instruments to be used as context managers so you can do things like:
This way you can be confident your connection is being closed properly.