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
defwith_dodal_module(self, module: ModuleType, **kwargs) ->None:
devices, exceptions=make_all_devices(module, **kwargs)
fordeviceindevices.values():
self.device(device)
# If exceptions have occurred, we log them but we do not make blueapi# fall overiflen(exceptions) >0:
LOGGER.warning(
f"{len(exceptions)} exceptions occurred while instantiating devices"
)
LOGGER.exception(NotConnected(exceptions))
change the call to make_all_devices inside context.py
@stan-dot I would favour supporting both, deprecating one and making issues to migrate as-and-when. Migrating beamline-by-beamline is still ideal but not mandated.
@callumforrester now that isolated_device_factory got merged we can presumably resume work on this. At the moment we could only lazy connect for i22, do you have any amendments to the strategy since the issue definition in April?
# context.py:115defwith_dodal_module(self, module: ModuleType, **kwargs) ->None:
devices, exceptions=make_all_devices(module, **kwargs)
fordeviceindevices.values():
self.device(device)
# If exceptions have occurred, we log them but we do not make blueapi# fall overiflen(exceptions) >0:
LOGGER.warning(
f"{len(exceptions)} exceptions occurred while instantiating devices"
)
LOGGER.exception(NotConnected(exceptions))
still I assume that to support parallel connect we'll need to wait for the bluesky / dodal / device factory shakeup to be resolved, so some weeks, right?
@stan-dot I'm unsure without further investigation. Yes it depends on the factory shakeup. However even then it is not a high priority. The work so far has to make sure we don't design parallel connect out when we need it, which will happen when beamlines start having many devices and slowing down blueapi's startup time. At that point we can prioritise this issue.
Activity
Remove ophyd_async_connect (#462)
stan-dot commentedon Aug 21, 2024
change the call to
make_all_devicesinside context.pystan-dot commentedon Aug 21, 2024
not sure if we should support the old and new instantiation behaviour or make it behind a flag and go beamline-by-beamline
callumforrester commentedon Aug 27, 2024
@stan-dot I would favour supporting both, deprecating one and making issues to migrate as-and-when. Migrating beamline-by-beamline is still ideal but not mandated.
stan-dot commentedon Aug 27, 2024
same
stan-dot commentedon Oct 24, 2024
@callumforrester now that
isolated_device_factorygot merged we can presumably resume work on this. At the moment we could only lazy connect for i22, do you have any amendments to the strategy since the issue definition in April?callumforrester commentedon Oct 25, 2024
In general I am against lazy connection unless it is needed for performance reasons. If a device isn't available, the earlier you know the better!
stan-dot commentedon Oct 28, 2024
ok but we still want the parallel connection, right?
callumforrester commentedon Oct 29, 2024
We do, also
isolated_device_factoryhas now been reverted[-]Support parallel and lazy connect[/-][+]Support parallel connect[/+]stan-dot commentedon Oct 29, 2024
tracking the location of the desired change
and after device registration step presumably
stan-dot commentedon Oct 31, 2024
@callumforrester is the
location of changecomment correct?still I assume that to support parallel connect we'll need to wait for the bluesky / dodal / device factory shakeup to be resolved, so some weeks, right?
callumforrester commentedon Nov 1, 2024
@stan-dot I'm unsure without further investigation. Yes it depends on the factory shakeup. However even then it is not a high priority. The work so far has to make sure we don't design parallel connect out when we need it, which will happen when beamlines start having many devices and slowing down blueapi's startup time. At that point we can prioritise this issue.
abbiemery commentedon Feb 25, 2026
The device manager should connect all devices for each module in parallel