Read mif files into python

Hi
I am trying to load .mif files into python. I can’t seem to find any tool or library that supports that?
You know something like nib.load but for .mif? Of course I can always convert to nifti first, but that seems tedious and I don’t like the separate handling of diffusion parameters.
Writing mif would be awesome, but even just reading would be nice.

This might be useful: GitHub - dchristiaens/mrtrix3-pyio: Python package to interface with MRtrix3 file formats.

Not massively up to date, but I’ve had success with it in the past!

Cheers
Fiona

4 Likes