From d4366f5a4855c3f54d35877e377bc7f712257f61 Mon Sep 17 00:00:00 2001 From: s25idcuser Date: Thu, 9 Jan 2025 14:54:04 -0600 Subject: [PATCH] Include xspress detector driver as a plugin to allow ndattributes reading. --- src/haven/devices/__init__.py | 1 + src/haven/devices/detectors/xspress.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/haven/devices/__init__.py b/src/haven/devices/__init__.py index 36fc2038..94695355 100644 --- a/src/haven/devices/__init__.py +++ b/src/haven/devices/__init__.py @@ -1,5 +1,6 @@ from .detectors.aravis import AravisDetector # noqa: F401 from .detectors.sim_detector import SimDetector # noqa: F401 +from .detectors.xspress import Xspress3Detector # noqa: F401 from .ion_chamber import IonChamber # noqa: F401 from .monochromator import Monochromator # noqa: F401 from .motor import HavenMotor, Motor # noqa: F401 diff --git a/src/haven/devices/detectors/xspress.py b/src/haven/devices/detectors/xspress.py index fa58a42b..12485a3f 100644 --- a/src/haven/devices/detectors/xspress.py +++ b/src/haven/devices/detectors/xspress.py @@ -113,6 +113,7 @@ def __init__( path_provider, lambda: self.name, XspressDatasetDescriber(self.drv), + self.drv, # <- for DT ndattributes ), config_sigs=(self.drv.acquire_period, self.drv.acquire_time, *config_sigs), name=name,