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
In #1798 and through out other beamlines, we have a mix of global state and dependency injection being used for the daq config server config client. The global state is used because in MX, they need access to the config server inside plans independent of devices. DeviceManager and BlueAPI currently only supports the concept of a Device from ophyd-async.
Instead, I'm proposing broadening this restriction to include the Bluesky protocol HasName inside DeviceManager (V2 = TypeVar("V2", bound=OphydV2Device | HasName)) (will also need BlueAPI to support DiamondLightSource/blueapi#1462) so we can make still make a clear distinction between what is a Device and what isn't while also making other objects findable and therefore injectable inside plans and can remove the use of troublesome global states.
The main issue I can see with this is that the DeviceManager also runs a load of logic around connecting devices which clearly won't be supported by a HasName type.
I can see the benefit of having non-devices be available though so will have a think about how to support it. Maybe via a separate environment_context list or similar. Maybe renaming/aliasing fixtures and making them available to blueapi?
Activity
[-]Allow more than just Devices to be discoverable for BlueAPI[/-][+]Allow HasName to be used with DeviceManager[/+]tpoliaw commentedon Mar 31, 2026
The main issue I can see with this is that the DeviceManager also runs a load of logic around connecting devices which clearly won't be supported by a
HasNametype.I can see the benefit of having non-devices be available though so will have a think about how to support it. Maybe via a separate
environment_contextlist or similar. Maybe renaming/aliasing fixtures and making them available to blueapi?oliwenmandiamond commentedon Mar 31, 2026
Yes I think making fixtures available via BlueAPI would be good idea! Then we can just use the fixture name as the name