From 5ed62f2d9851ac64b67ae2e201e10ca4823bca53 Mon Sep 17 00:00:00 2001 From: Beale John Henry Date: Wed, 7 May 2025 22:22:53 +0200 Subject: [PATCH] deleted a couple of conditions - still needs a bit of cleaning --- reduction_tools/custom_spliting.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/reduction_tools/custom_spliting.py b/reduction_tools/custom_spliting.py index 263e0b0..435e998 100755 --- a/reduction_tools/custom_spliting.py +++ b/reduction_tools/custom_spliting.py @@ -21,12 +21,10 @@ def extract_data_from_chunks( input_file, output_file, name ): if indexed_by_value != 'none': image_filename_match = re.search(r'Image filename: (.+\.h5)', chunk) event_match = re.search(r'Event: (//\d+)', chunk) -# condition_match = re.search(r'run\d+-(?:aslov2rac1|aslov2-Rac1)_([\w\d]+_SOS)', chunk) if image_filename_match and event_match: image_filename = image_filename_match.group(1) event_number = event_match.group(1) - #condition = condition_match.group(1) # Extracts "100ns_0p8uJ_SOS" or "dark_SOS" out_file.write(f"{image_filename} {event_number} {name}\n") print( "done" )