From 05be46179e771a2327b7b5fe3b1d845a9d70e910 Mon Sep 17 00:00:00 2001 From: Jerome Kieffer Date: Thu, 22 Feb 2024 14:10:02 +0100 Subject: [PATCH] fix pipeline for ID27 --- plugins/id27.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/id27.py b/plugins/id27.py index 8252980..47a6d19 100644 --- a/plugins/id27.py +++ b/plugins/id27.py @@ -610,14 +610,15 @@ def process(self): fast_scan = self.input.get("fast_scan", 1) slow_scan = self.input.get("slow_scan", 1) + # handle the special case of fscan3d -> each file is reduced prior to integration if len(files)>1 and fast_scan*slow_scan == len(files): - # handle the special case of fscan3d -> each file is reduced prior to integration + reduced_files = [] for inputname in files: output = os.path.join(dest_dir, os.path.basename(inputname).replace(".h5",".sum.h5")) # print(inputname, output) command = [os.path.join(PREFIX, 'pyFAI-average'), "--quiet", - '-m', 'sum', '-F', 'lima', '-o', output, filename] + '-m', 'sum', '-F', 'lima', '-o', output, inputname] results[inputname] = unpack_processed(subprocess.run(command, capture_output=True, check=False)) reduced_files.append(output) files = reduced_files @@ -664,6 +665,8 @@ def process(self): l = file_path.split("/") i = l.index(RAW) sample_name = l[i+1] + else: + sample_name = "unknown" metadata = {"definition": "diffmap", "Sample_name": sample_name} try: