-
Notifications
You must be signed in to change notification settings - Fork 116
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
Find all and only image files for specific filter #771
Comments
I would use: layout.get(scope='raw',suffix='bold', extension=[".nii", ".nii.gz"]) And yes, we do need to fix our docs. Thanks for reminding me. I'll rebuild and push manually for now... |
Thank you, my current solution also used the extension but with a regex. Now, if I'd like to use |
Generally if I find something that begins or ends with I think |
I wanted to avoid type checking but you're right. Thank you. |
I'd like to find all image files and only image files for, for example, bold suffix. The following query returns json and image files:
How to get only image files in the output of
get
without constraining the file extensions? There are nice classesBIDSJSONFile
andBIDSImageFile
but I haven't found a way to use them as filters inget
.As a side note, the documentation is rather scarce in that matter and outdated (version 0.11.1 is online). The filters are not really explained.
The text was updated successfully, but these errors were encountered: