poldracklab / pydeface

defacing utility for MRI images
MIT License
110 stars 42 forks source link

remove singleton dim when creating outdata #16

Closed leej3 closed 6 years ago

leej3 commented 6 years ago

I encountered an issue where the nifti files had an additional singleton dimension. Using squeeze fixed the problem. It might be of general use. I do not know how the nifti files were created, which isn't very helpful. This pull request might be helpful for others encountering the same issue. I don't know the codebase well enough to know whether it might cause problems itself though.

chrisgorgo commented 6 years ago

Thanks for the contribution!