Dear experts,
Recently, I want to use AMICO to conduct the NODDI analysis.
I downloaded the example data and tested it.
But the following error was obtained when I loaded the sample data.
Does anyone meet the same error?
How to fix it?
Best,
Lin
####################################################################################
ae.load_data( "NODDI_DWI.img", "NODDI_protocol.scheme", mask_filename="roi_mask.img", b0_thr=0 )
-> Loading data:
* DWI signal
Traceback (most recent call last):
File "", line 1, in
File "/Users/lincai/.pyenv/versions/anaconda3-2022.05/lib/python3.9/site-packages/amico/core.py", line 131, in load_data
self.niiDWI_img = self.niiDWI.get_data().astype(np.float32)
File "/Users/lincai/.local/lib/python3.9/site-packages/nibabel/deprecator.py", line 185, in deprecated_func
raise error_class(message)
nibabel.deprecator.ExpiredDeprecationError: 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
Dear experts,
Recently, I want to use AMICO to conduct the NODDI analysis.
I downloaded the example data and tested it.
But the following error was obtained when I loaded the sample data.
Does anyone meet the same error?
How to fix it?
Best,
Lin
####################################################################################
-> Loading data:
* DWI signal
Traceback (most recent call last):
File "", line 1, in
File "/Users/lincai/.pyenv/versions/anaconda3-2022.05/lib/python3.9/site-packages/amico/core.py", line 131, in load_data
self.niiDWI_img = self.niiDWI.get_data().astype(np.float32)
File "/Users/lincai/.local/lib/python3.9/site-packages/nibabel/deprecator.py", line 185, in deprecated_func
raise error_class(message)
nibabel.deprecator.ExpiredDeprecationError: 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).