Commit 656317ca authored by Jerome Carnis's avatar Jerome Carnis 🦊
Browse files

deviceEigerP11.py: add docstrings

parent 44347d75
Pipeline #28054 passed with stages
in 10 minutes and 3 seconds
......@@ -28,6 +28,11 @@ from kamzik3.devices.general.deviceScanner import DeviceScanner
from kamzik3.macro.scan import Scan
from kamzik3.snippets.snippetsDecorators import expose_method
"""
TriggerMode 0, 1, 2, 3 correspond to "EXTE", "EXTS", "INTE", "INTS" in Eiger
documentation.
"""
class DeviceTangoEigerDetector(DeviceTango):
"""
......@@ -176,6 +181,12 @@ class DeviceTangoEigerDetector(DeviceTango):
@expose_method()
def stop(self):
"""
Stop the acquisition.
It is necessary to call Disarm() if the detector acquisition is stopped manually
because it forces the filewriter to go back to ON (otherwise it stays RUNNING).
"""
if self.get_value(ATTR_STATUS) == STATUS_BUSY:
self.logger.info("Acquisition aborted")
self.Abort()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment