diff --git a/src/faim_ipa/hcs/imagexpress/acquisition.py b/src/faim_ipa/hcs/imagexpress/acquisition.py index 80c818e7..039f7b0d 100644 --- a/src/faim_ipa/hcs/imagexpress/acquisition.py +++ b/src/faim_ipa/hcs/imagexpress/acquisition.py @@ -259,7 +259,7 @@ def __init__( def _get_root_re(self) -> re.Pattern: return re.compile( - r".*[\/\\](?P\d{4}-\d{2}-\d{2})[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?" + r".*(?:[\/\\](?P\d{4}-\d{2}-\d{2}))?[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?" ) def _get_filename_re(self) -> re.Pattern: @@ -320,7 +320,7 @@ def _parse_files(self) -> pd.DataFrame: def _get_root_re(self) -> re.Pattern: return re.compile( - r".*[\/\\](?P\d{4}-\d{2}-\d{2})[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?(?:[\/\\]ZStep_(?P\d+))" + r".*(?:[\/\\](?P\d{4}-\d{2}-\d{2}))?[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?(?:[\/\\]ZStep_(?P\d+))" ) def _get_filename_re(self) -> re.Pattern: @@ -422,7 +422,7 @@ def _filter_mips(self, files: pd.DataFrame) -> pd.DataFrame: def _get_root_re(self) -> re.Pattern: return re.compile( - r".*[\/\\](?P\d{4}-\d{2}-\d{2})[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?(?:[\/\\]ZStep_(?P\d+))?.*" + r".*(?:[\/\\](?P\d{4}-\d{2}-\d{2}))?[\/\\](?P\d+)(?:[\/\\]TimePoint_(?P\d+))?(?:[\/\\]ZStep_(?P\d+))?.*" ) def _get_filename_re(self) -> re.Pattern: