Closed Sohambutala closed 4 months ago
Add a flag in Datastore.yaml to change this regex or potentially bypass it to use the filename as a whole for the group name.
I like the latter solution to bypass this to use the filenames for the grouping, since there are often different ways people want to group their files. The x
here stands for transects, but not all datasets have the concept of transects. For example, for mooring type of data like from the OOI, there are no transects, and the grouping can be based on days or weeks.
grouping_regex
option has been added to define a regex pattern to derive group names directly from filenames.
In addition:
grouping_regex
is not specified, the code automatically checks for a 'group_name' parameter and adds files under that group.grouping_regex
nor group_name
is defined, the code defaults to using complete filenames as group names and adds files accordingly.
Description
The current implementation of the TRANSECT_FILE_REGEX (r"x(?P\d+)") is causing an unintended behavior where files are grouped into a single group, despite having distinct filenames. This issue affects files like:
Expected Behavior
Each file should be grouped separately based on their filenames, ensuring distinct groups for each file.
Actual Behavior
Files are being grouped into a single group despite having distinct filenames.
Environment (please complete the following information):
Steps to Reproduce
Steps to reproduce the behavior:
Screenshots
Possible Solution / Suggestion
Add a flag in Datastore.yaml to change this regex or potentially bypass it to use the filename as a whole for the group name.
Additional Context