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

IsSensor object limited to static channel shapes #89

Open
jscheeler1 opened this issue Jan 17, 2023 · 0 comments
Open

IsSensor object limited to static channel shapes #89

jscheeler1 opened this issue Jan 17, 2023 · 0 comments

Comments

@jscheeler1
Copy link

jscheeler1 commented Jan 17, 2023

This creates a problem when the channel shape is dynamic, e.g. when changing the region of interest on a camera from scan to scan.

In https://github.com/bluesky/yaqc-bluesky/blob/master/yaqc_bluesky/_is_sensor.py, the problem arises from line 18 where the IsSensor object describes its shape to bluesky. It pulls from where the channel shapes are stored upon daemon startup in line 12.

A possible fix would be to never store the channel shape upon startup. Only give the channel shape when the object is asked to describe itself and pull straight from the yaq_client. It's not clear if this would have negative consequences, however.

A current workaround is to restart the qserver environment with the desired channel shape of the sensor reflected at the yaq daemon level.

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

No branches or pull requests

1 participant