-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH]: Unix path expansion directives support for PatternDataGrabber
#345
Conversation
Needs to go before #344 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #345 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 1 1
=========================================
Hits 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also improve the docs to reflect this change?
3bbf98b
to
80a5a4a
Compare
This PR adds support for specifying Unix path expansion directives like
[], [!]
forPatternDataGrabber
patterns. This is an improvement which is needed for supportingFreeSurfer
data type. For example,fsaverage
directory is at the same level as subjects likesub-0001
for AOMIC datasets and[!f]
allows to not glob thefsaverage
directory without overridingget_elements()
method. As the.mgz
and other outputs ofFreeSurfer
are not unique by subject (and/or task / session) prefix, globbing doesn't work as usual (at least for the AOMIC datasets). This also enables one to have the pattern:.../T1.mg[z]
to make it work.