deleted a couple of conditions - still needs a bit of cleaning

This commit is contained in:
Beale John Henry
2025-05-07 22:22:53 +02:00
parent 66d776eaab
commit 5ed62f2d98

View File

@@ -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" )