Skip to content
Snippets Groups Projects
Commit 0ac78a7d authored by Haak, R. (Romeo)'s avatar Haak, R. (Romeo)
Browse files

Changed the star to + as a key of 7 and 17 could be mixed up. Now that should...

Changed the star to + as a key of 7 and 17 could be mixed up. Now that should not be possible anymore.
parent 6de2ac5f
No related branches found
No related tags found
1 merge request!82Sc 129/wrapper
......@@ -54,12 +54,11 @@ class Utils:
Returns:
the reduced path
"""
match = re.search(f"{participant}\D*{video}+\.T", path)
match = re.search(f"{participant}\D+{video}+\.T", path)
task = None
if match:
key = match.group()[:-2]
print(f' key: {key}')
task_match = re.search("_(\D*)\d*",key)
task_match = re.search("_(\D+)\d+",key)
task = task_match.group(1)
return task
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment