[Neuroimaging] Input Parameter for nibabel.load() - Ignore .mat File?
Gardus III, John D
John.Gardus at stonybrookmedicine.edu
Fri May 10 15:03:51 EDT 2024
Hello,
I have a Django-based website used for data management and visualization for my lab. I'm upgrading to Python3 and thus am porting our old NiftiImage calls over to nibabel.
I'm running into an issue when trying to load some Analyze images. Due to the way our pipeline is set up, we store a .mat file containing an affine transform matrix for PET-to-MR coregistration along with a mean PET image. When I try to load the PET image with nibabel.load(<path>), I get an error in nibabel/spm99analyze.py. It seems to think the .mat file is associated with the image and fails due to an unexpected filetype when trying to read its data.
Is there a way to get nibabel.load() to ignore .mat files in the same directory as an image?
Thanks,
John
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by e-mail and destroy all copies of the original.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/neuroimaging/attachments/20240510/e85da4d1/attachment.html>
More information about the Neuroimaging
mailing list