You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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:
Each beamline module decorates its device factories with a device_factory
This factory makes, names, caches and optionally connects a device
In script use can pass connect=True to the device to connect in the foreground, requires a RunEngine to have been made
In blueapi use can find all the eager devices and connect them at startup
Can also connect them in a plan with the ensure_connected plan stub
This ticket is for:
New ADR
Describing how Devices should be connected in dodal, from scripts and under blueapi
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 needs
Acceptance Criteria
ADR written so we know why this was done
device_factory available to use in beamline modules
i22.py updated to use it
The text was updated successfully, but these errors were encountered:
#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: