RE command and plan stubs for plan-based remote management of the que…#49
Open
burkeds wants to merge 3 commits intobluesky:mainfrom
Open
RE command and plan stubs for plan-based remote management of the que…#49burkeds wants to merge 3 commits intobluesky:mainfrom
burkeds wants to merge 3 commits intobluesky:mainfrom
Conversation
mrakitin
reviewed
Sep 15, 2025
Member
There was a problem hiding this comment.
I don't think we need this dunder init file on the top level.
Member
|
@sligara7, please have a look. |
sligara7
reviewed
Sep 16, 2025
sligara7
left a comment
There was a problem hiding this comment.
The new run_engine features are pretty cool. I did not see any errors in code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an exposure of the API via bluesky plan_stubs. This was motivated by the use-case of operando catalysis as part of the ROCK-IT project. Catalysis reactions necessitate independent control of scanning and sample environment. The need to be able to pause and change scans without interrupting sample environment control necessitates at least two RunEngines. By exposing the API to the RunEngine via plan_stubs, we are able to remotely manage a secondary queue from a primary RunEngine.
A new command "remote_queue" is registered to the RunEngine which calls a coroutine to interact with an REManagerAPI object.
Accompanying this is a library of plan_stubs which call methods and attributes of REManagerAPI. Here is an example of its use:
Note: Due to an apparent bug in the main code base, the async versions of REManagerAPI can't be called in this way. See issue #48.
Note: Issue #48 has been resolved. The example has been edited to demonstrate how to instantiate the asynchronous REManagerAPI.