From f3866a29e9b7952f6b416758a067bfa2940ca945 Mon Sep 17 00:00:00 2001 From: e21206 Date: Fri, 4 Aug 2023 08:25:27 +0200 Subject: [PATCH] fix: bugfix burstenable and burstdisalbe --- ophyd_devices/epics/devices/DelayGeneratorDG645.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ophyd_devices/epics/devices/DelayGeneratorDG645.py b/ophyd_devices/epics/devices/DelayGeneratorDG645.py index 839ab65..1c555b6 100644 --- a/ophyd_devices/epics/devices/DelayGeneratorDG645.py +++ b/ophyd_devices/epics/devices/DelayGeneratorDG645.py @@ -188,7 +188,7 @@ class DelayGeneratorDG645(Device): # Validate inputs count = int(count) assert count > 0, "Number of bursts must be positive" - assert delay > 0, "Burst delay must be positive" + assert delay >= 0, "Burst delay must be larger than 0" assert period > 0, "Burst period must be positive" assert config in ["all", "first"], "Supported bust configs are 'all' and 'first'" @@ -202,7 +202,7 @@ class DelayGeneratorDG645(Device): elif config == "first": self.burstConfig.set(1).wait() - def busrtDisable(self): + def burstDisable(self): """Disable the burst mode""" self.burstMode.set(0).wait()