daducci / COMMIT

Linear framework to combine tractography and tissue micro-structure estimation with diffusion MRI
Other
43 stars 33 forks source link

affine does not exist in nibabel 1.3, it's get_affine, which is deprecated #1

Closed samuelstjean closed 9 years ago

samuelstjean commented 9 years ago

I tried to run the example, but it assumes the nibabel 2.0 command for the affine (without expliciting the version requirements in the install). The old 1.0 way of doing it is get_affine, but that is deprecated according to http://nipy.org/nibabel/reference/nibabel.spatialimages.html

So, as a workaround, I suggest either

Second option won't force people to upgrade, but requires some code edit.

daducci commented 9 years ago

Thanks @samuelstjean for testing! I'm really new in Python, but I guess now the issue should be fixed.

samuelstjean commented 9 years ago

Yes, it works now, thanks.