mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-06 03:40:41 +02:00
fix: wip, fix for set_channels to not wait for .set commands, add check if ddg is okay.
This commit is contained in:
parent
bcb178b9b3
commit
ae988d38b6
@ -313,10 +313,13 @@ class DelayGenerator(Device):
|
||||
if not channel:
|
||||
continue
|
||||
if signal in channel.component_names:
|
||||
getattr(channel, signal).set(val).wait()
|
||||
getattr(channel, signal).set(val)
|
||||
continue
|
||||
if "io" in channel.component_names and signal in channel.io.component_names:
|
||||
getattr(channel.io, signal).set(val).wait()
|
||||
getattr(channel.io, signal).set(val)
|
||||
self.check_if_ddg_okay(
|
||||
raise_on_error=True
|
||||
) # Check that DDG did not return an error, raise immediately if it did
|
||||
|
||||
def check_if_ddg_okay(self, raise_on_error: bool = False) -> None:
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user