The get_data() function has been deprecated since nibabel version 3.0 and is no longer recommended. In its place is the get_fdata() function, which provides a more predictable return type.
So we need to change get_data() to get_fdata() so that the code runs successfully
The get_data() function has been deprecated since nibabel version 3.0 and is no longer recommended. In its place is the get_fdata() function, which provides a more predictable return type. So we need to change get_data() to get_fdata() so that the code runs successfully