You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I commented the bolded line below, which surpassed this error, which is not right but for the sake of running code, I did this and then faced another error
def deprecator(func: ty.Callable[P, T]) -> ty.Callable[P, T]:
@functools.wraps(func)
def deprecated_func(*args: P.args, **kwargs: P.kwargs) -> T: # if until and self.is_bad_version(until):
# raise exception(message)
warnings.warn(message, warning, stacklevel=2)
return func(*args, **kwargs)
_Error: File "/home/student/.local/lib/python3.10/site-packages/cv2/typing/init.py", line 69, in NumPyArrayGeneric = numpy.ndarray[typing.Any, numpy.dtype[numpy.generic]]
_TypeError: 'numpy.DTypeMeta' object is not subscriptable
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).
The text was updated successfully, but these errors were encountered: