openmedlab / MedLSAM

MedLSAM: Localize and Segment Anything Model for 3D Medical Images
Apache License 2.0
498 stars 19 forks source link

Suggestion: get_data() function is deprecated #4

Open nanshanvv opened 1 year ago

nanshanvv commented 1 year ago

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 image

LWHYC commented 1 year ago

Thank you so much for pointing this out! We have updated the get_data() to get_fdata().