miykael / gif_your_nifti

How to create fancy GIFs from an MRI brain image
BSD 3-Clause "New" or "Revised" License
118 stars 31 forks source link

change nib.get_data to nib.get_fdata #11

Closed ChengranAA closed 1 year ago

ChengranAA commented 1 year ago

From Nibabel " 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).

deprecated from version: 3.0 Raises <class ‘nibabel.deprecator.ExpiredDeprecationError’> as of version: 5.0"

I changed the get_data in the core.py to get_fdata. Thank you if you can merge my fix to the master branch!

miykael commented 1 year ago

Thank you very much!