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.
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.