|
@@ -44,7 +44,7 @@ This 'helper.py' is written to work at the **root directory of the dataset**.
|
|
|
4. from a Python session, run `import helper`.
|
|
|
"""
|
|
|
|
|
|
-DATE_PATTERN = _re.compile(r'[0-9]{4}-[0-9]{2}-[0-9]{2}$')
|
|
|
+DATE_PATTERN = _re.compile(r'([0-9]{4}-[0-9]{2}-[0-9]{2})-$')
|
|
|
|
|
|
rootdir = _Path(__file__).parent
|
|
|
|
|
@@ -159,7 +159,7 @@ class context:
|
|
|
is_session = DATE_PATTERN.search(child.name)
|
|
|
if not is_session:
|
|
|
continue
|
|
|
- date = is_session.group(0)
|
|
|
+ date = is_session.group(1)
|
|
|
if self.__validate__('date', date):
|
|
|
cxt = sub.context.copy()
|
|
|
cxt['date'] = date
|