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

Use status objects from non-set objects #7

Open
teddyrendahl opened this issue Apr 17, 2018 · 1 comment
Open

Use status objects from non-set objects #7

teddyrendahl opened this issue Apr 17, 2018 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@teddyrendahl
Copy link
Contributor

Ophyd objects may have multiple methods that return status objects that you would want to wait for in a scan. Currently this is difficult to do. A standard solution should be created either as a custom message or in the bluesky library itself.

Example

def home_then_move(motor, val):
     yield from wait_from_call(motor.home)  # Wait for status object from home message. Ignore name
      yield from mv(motor, val)   # Standard wait on a move
@teddyrendahl teddyrendahl added this to the HXRSnD milestone Apr 17, 2018
@teddyrendahl teddyrendahl added the enhancement New feature or request label Apr 17, 2018
@ZLLentz
Copy link
Member

ZLLentz commented Apr 17, 2018

This is actually pretty easy to implement, but there's a philosophical argument to made that these should be done in a setup routine if it's not a set command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants