mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-13 06:47:14 +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:
@ -313,10 +313,13 @@ class DelayGenerator(Device):
|
|||||||
if not channel:
|
if not channel:
|
||||||
continue
|
continue
|
||||||
if signal in channel.component_names:
|
if signal in channel.component_names:
|
||||||
getattr(channel, signal).set(val).wait()
|
getattr(channel, signal).set(val)
|
||||||
continue
|
continue
|
||||||
if "io" in channel.component_names and signal in channel.io.component_names:
|
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:
|
def check_if_ddg_okay(self, raise_on_error: bool = False) -> None:
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user