-
Notifications
You must be signed in to change notification settings - Fork 26
Add a Valve class #245
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
base: main
Are you sure you want to change the base?
Add a Valve class #245
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,6 @@ | |
|
|
||
| _time_fmtstr = '%Y-%m-%d %H:%M:%S' | ||
|
|
||
|
|
||
| class TwoButtonShutter(Device): | ||
| # TODO: this needs to be fixed in EPICS as these names make no sense | ||
| # the value coming out of the PV does not match what is shown in CSS | ||
|
|
@@ -128,3 +127,7 @@ def __init__(self, *args, **kwargs): | |
| super().__init__(*args, **kwargs) | ||
| self._set_st = None | ||
| self.read_attrs = ['status'] | ||
|
|
||
| class Valve(TwoButtonShutter): | ||
| def stop(self, *, success=False): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now does not close despite the name. The default stop method is a no-op so we should move the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure if I just made it worse. |
||
| ... | ||
|
tacaswell marked this conversation as resolved.
Outdated
|
||
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.
At least at SRX we are (were?) using this for the a photon shutter, I think we need a better name.
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.
so something that captures, valves + photon shutters?
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.
The interesting property is that "does not close on stop", putting more in a normal comment.