Skip to content
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

Improve two-button-shutter stop semantics #164

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tacaswell
Copy link
Member

This is code I had sitting around on my computer.

  1. One exiting of the run loop the RE stops everything it moves
  2. The default "stop" behavior of the shutters is to close themselves
  3. This means you can to do RE(bps.mv(shutter, 'open')) because it will open and then be helpfully closed 🤦🏻

We have run into to this at several beamlines (who locally sub-classed and removed the stop method) so we should make it configurable.

Anyone should feel free to take over this PR.

Setting up the logic to re-open on resume should be in `pause` not in stop.
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.

1 participant