templateflow / datalad-osf

Utility scripts to facilitate use of Datalad with OSF
Apache License 2.0
3 stars 4 forks source link

Update utils.py to allow for .nii file extension #4

Closed bacaron closed 4 years ago

bacaron commented 4 years ago

Currently, the code only allows for the download files with the extension of '.nii.gz'. However, some datasets may not have gzipped the niftis, and thus those datasets don't get downloaded.

I've added a simple 'or' statement to include non-gzipped niftis (i.e. '.nii'). Tested and it seems to work on the dataset originally giving me issues.

sappelhoff commented 4 years ago

see also #2, which I think would be nicer than just accepting nii and nii.gz files :)