Open Hierakonpolis opened 4 years ago
It appears the names of the files generated (O.mask.A0.affine.nii.gz) do not match with the names of the files the algorithm is looking for (O.nii.gz.mask.A0.affine.nii.gz)
I have the same problem. Were you able to solve it?
No
Could anyone solve this issue in recent times?
Describe the bug
mas_masking_batch
fails to find the header of the *.affine.nii.gz files. The files can be visualized correctly in fsleyes and I can access the header when opened in python using nibabel.I did not encounter this problem when testing the same script on one of the atlas files, but it fails on my MRI volumes. While I understand there might be something wrong with my data, it would be very helpful if the script would raise a more informative error and tell me what the problem is. I tried tweaking the header, even replacing it entirely with the header from one of the template volumes (while keeping dim, pixdim, srow_* and affine matrix data), with no changes.
Desktop (please complete the following information):