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

[update required] nib.load.get_fdata() #54

Open
tashrifbillah opened this issue Jul 9, 2020 · 1 comment
Open

[update required] nib.load.get_fdata() #54

tashrifbillah opened this issue Jul 9, 2020 · 1 comment

Comments

@tashrifbillah
Copy link
Collaborator

* deprecated from version: 3.0
* Will raise <class 'nibabel.deprecator.ExpiredDeprecationError'> as of version: 5.0
  _, mask= median_otsu(img.get_data()[...,ind], median_radius, num_pass)
/home/centos/tbss/lib/dwiMask.py:17: DeprecationWarning: get_data() is deprecated in favor of get_fdata(), which has a more predictable return type. To obtain get_data() behavior going forward, use numpy.asanyarray(img.dataobj).
@tashrifbillah
Copy link
Collaborator Author

Run the following:

grep ".get_data()" *py

sed -i "s/.get_data()/get_fdata()/g" *py

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