Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in Box-Cox transformation #19

Open
knutj opened this issue Aug 21, 2022 · 1 comment
Open

error in Box-Cox transformation #19

knutj opened this issue Aug 21, 2022 · 1 comment

Comments

@knutj
Copy link

knutj commented Aug 21, 2022

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.

  • deprecated from version: 2.1
    After updating to img,affine

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

@knutj
Copy link
Author

knutj commented Aug 21, 2022

It caused by using a deprecated function in Nibabel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant