The function `affine_from_fsl_mat_file` is imported and used here: https://github.com/nipy/nipype/blob/f756b71117493caea093bac79d576207d8f96482/nipype/interfaces/mrtrix/convert.py#L196 However, this function was deleted in https://github.com/dipy/dipy/commit/a700df9805a5a626d4f33aa48d027d229d61042b#diff-24e3afc30f00cdbf9015dffb73ce1d2ab08ae582ebdc519b218361b5ff904e7e I'm not sure what happened to the functionality in dipy, I will try to look into this more later.