-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make device_factory
decorator to ease making and connecting ophyd-async Devices
#483
Comments
so the idea is that all |
yes |
@coretl what is the role of keeping the lazy devices in a global dict? why is the key a complex object?
|
there is loads of global state in there! very surprising. |
|
As written in the original issue:
So it looks like this:
But this is all specified in DiamondLightSource/blueapi#440 |
#415 (comment) summarizes a discussion on Device connection.
bluesky/ophyd-async#265 will implement the ophyd-async supporting features of idempotent connect. The strategy we would like for dodal is:
device_factory
connect=True
to the device to connect in the foreground, requires a RunEngine to have been madeensure_connected
plan stubThis ticket is for:
New ADR
Describing how Devices should be connected in dodal, from scripts and under blueapi
dodal.beamlines.beamline_utils
Need to add type hints to this so it knows the type of device it is making from the function it is decorating and check with @callumforrester that
get_device_factories
is what blueapi actually needsAcceptance Criteria
device_factory
available to use in beamline modulesi22.py
updated to use itThe text was updated successfully, but these errors were encountered: