Repository navigation
Add a helper for automatically subscribing to hinted datakey streams, along with a helper that reproduces the output of the bluesky BEC, but using tiled websocket streaming instead - #82
Open
jwlodek wants to merge 2 commits into
Conversation
… along with a helper that reproduces the output of the bluesky BEC, but using tiled websocket streaming instead
This branch has not been deployed
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.
For UIs that will be interacting with an out-of-process run engine, the current typical approach of using the BEC for live visualization will not work.
Similarly, any visualization code that leveraged the hints listed in descriptor documents would also not work in this approach. The solution this PR proposes is to rebuild the functionality using tiled websocket streaming. It adds a helper that will use
subscribe_to_streamsto automatically find the hinted datasets in each stream that can then be passed to a callback.Then, targeting the same output as the bluesky BEC, I used the helper to produce BEC like outputs by subscribing to a tiled catalog instead of a document stream.
An advantage of this approach is that it can also be used in-process, meaning that a UI that supports both remote plan execution as well as in-process execution wouldn't need to handle this kind of visualization independently.
assisted by: Github Copilot, VSCode, Claude Opus 5.5