From 823c33e8300fba89aa02f7afafac6fd799027cf7 Mon Sep 17 00:00:00 2001 From: gac-x04sa Date: Wed, 23 Apr 2025 15:53:37 +0200 Subject: [PATCH] eiger: prepare getting file info from scaninfo --- addams_bec/devices/detector.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/addams_bec/devices/detector.py b/addams_bec/devices/detector.py index 974f508..57822f3 100644 --- a/addams_bec/devices/detector.py +++ b/addams_bec/devices/detector.py @@ -1,3 +1,5 @@ +import os + from ophyd import ( ADComponent as ADCpt, Device, @@ -51,6 +53,14 @@ class Eiger500KSetup(CustomDetectorMixin): self.parent.cam.acquire.put(1, wait=False) # arm # file writer + # TODO: enable this when new storage path is consistent on bec server and consoles. + # self.parent.filepath.set( + # self.parent.filewriter.compile_full_filename(f"{self.parent.name}") + # ).wait() + # file_path, file_name = os.path.split(self.parent.filepath.get()) + # self.parent.hdf.file_path.put(file_path) + # self.parent.hdf.file_name.put(file_name) + # self.parent.hdf.file_template.put("%s%s") self.parent.hdf.lazy_open.put(1) self.parent.hdf.num_capture.put(num_points) self.parent.hdf.file_write_mode.put(2) # Stream