refactor: falcon, add trigger function

This commit is contained in:
Christian Appel 2023-10-24 15:33:01 +02:00
parent 0dec88eda5
commit 7f4082a6e9

View File

@ -307,6 +307,17 @@ class FalconCsaxs(Device):
break break
time.sleep(0.005) time.sleep(0.005)
# TODO function for abstract class?
def trigger(self) -> DeviceStatus:
"""Trigger the detector, called from BEC."""
self._on_trigger()
return super().trigger()
# TODO function for abstract class?
def _on_trigger(self):
"""Specify action that should be taken upon trigger signal."""
pass
def unstage(self) -> List[object]: def unstage(self) -> List[object]:
"""Unstage the device. """Unstage the device.