From c79f7a0c83e7ab3befb47d05a9bcccee9f83e2f8 Mon Sep 17 00:00:00 2001 From: Flurin Sturzenegger Date: Wed, 13 Nov 2024 15:11:56 +0100 Subject: [PATCH] make date optional --- src/faim_ipa/hcs/imagexpress/acquisition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: