bids-standard / pybids

Python tools for querying and manipulating BIDS datasets.
https://bids-standard.github.io/pybids/
MIT License
224 stars 122 forks source link

Create BIDSFile object that provides easier access to metadata and image #242

Closed tyarkoni closed 6 years ago

tyarkoni commented 6 years ago

Currently, when files are retrieved with get, access to metadata has to occur through the BIDSLayout, and there's no way to easily access the actual nifti image (if the file is a nifti). It would be helpful to create a BIDSFile wrapper around grabbit's File that adds .nifti and .metadata fields.

effigies commented 6 years ago

I would replace nifti with image, as we may have GIFTI or CIFTI images.