trislett / TFCE_mediation

Fast regression and mediation analysis of vertex or voxel MRI data with TFCE
GNU General Public License v3.0
29 stars 9 forks source link

error in Box-Cox transformation #19

Open knutj opened 2 years ago

knutj commented 2 years ago

When I use Box-Cox transformation I get this error.

Traceback (most recent call last): File "/home/knutjb/pymediator/bin/tm_tools", line 164, in args.func(args) File "/home/knutjb/pymediator/lib64/python3.7/site-packages/tfce_mediation/tools/boxcox_transformation.py", line 65, in run affine_mask = img_surf.get_affine() File "/home/knutjb/pymediator/lib/python3.7/site-packages/nibabel/deprecator.py", line 181, in deprecated_func raise error_class(message) nibabel.deprecator.ExpiredDeprecationError: get_affine method is deprecated. Please use the img.affine property instead.

There has been an update to Nibabel. I am using Python 3.7.

knutj commented 2 years ago

It caused by using a deprecated function in Nibabel.