-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add .get_entities() method to BIDSLayout #346
Comments
Grabbit's |
If this is a |
It's an instance method at the moment, but in the interest of preserving the API and not adding new methods, we can make it a static method and pull the entities directly from the JSON. Unfortunately this isn't entirely straightforward because of the way |
Following up on this, in 0.8, you can do |
0.9 adds a |
Currently, you can get valid entities by running
BIDSLayout(bids_root).entities
and a little parsing. It would be nice to have a helper function such asbids.layout.list_entities()
:The reason this comes up is that, currently,
nipype.interfaces.io.BIDSDataGrabber
manually parses the JSON files, found in a path relative tobids.__file__
. This isn't great.The text was updated successfully, but these errors were encountered: