-
Notifications
You must be signed in to change notification settings - Fork 533
[ENH] add option to include derivatives in BIDSDataGrabber #2815
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2815 +/- ##
==========================================
+ Coverage 67.46% 67.48% +0.01%
==========================================
Files 341 341
Lines 43331 43342 +11
Branches 5371 5374 +3
==========================================
+ Hits 29235 29250 +15
+ Misses 13396 13390 -6
- Partials 700 702 +2
Continue to review full report at Codecov.
|
@jdkent Sorry, I haven't had time to really think this through. Especially given that it may conflict with (I haven't checked) @adelavega's #2737 (which also needs to merge master), I think we should put this off to next release. |
exclude = None | ||
if self.inputs.strict: | ||
exclude = ['derivatives/', 'code/', 'sourcedata/'] | ||
layout = BIDSLayout(self.inputs.base_dir, exclude=exclude) | ||
|
||
if pybids_ver < version.parse('0.5'): |
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.
Maybe you can include something like this in my PR? My PR is more general update to 0.7, and includes some extra functionality / updates, in addition to allowing for derivatives. I just hadn't merged because I'm waiting for pybids 0.7 release.
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.
Although now that I think about it, I wouldn't worry too much about backwards compatibility. I would make 0.7 the hard requirement. The default behavior of my PR is to only look in the core BIDS folder, but you can optionally ask it to look in /derivatives
or add extra paths.
Closing in favor of #2737. If further changes are needed, please open a new PR. (I think trying to merge and salvage a usable commit history from this one is probably not worth it.) |
Summary
The behavior of pybids changed from
0.5.*
to0.6.*
such that the derivatives domain is not included in the default search pattern.Fixes #2814
This pull request is partially overlapping with #2737
List of changes proposed in this PR (pull-request)
domains
option in BIDSDataGrabber for user to select what domains should be used for indexing filesAcknowledgment