pnlbwh / pnlNipype

PNL pipeline for NIFTI images
Other
10 stars 15 forks source link

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

Open tashrifbillah opened 4 years ago

tashrifbillah commented 4 years ago
* 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 commented 4 years ago

Run the following:

grep ".get_data()" *py

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