Open kimjetwav opened 1 year ago
Hi kimjetwav,
Thank you for this extensive report. This is sometimes called "code rot", the interesting fact that even if you write bug-free code (or so you hope), the world around your software changes and it suddenly no longer works. At the moment I do not have time at all to focus on MDT. Could you perhaps create a pull request?
Best, Robbert
Hey, we've encountered an incompatibility in using MDT version 1.2.7 with NiBabel versions greater than or equal to 5.0.0, in that the former utilises a deprecated interface from the latter: the
get_data
interface, which is now deprecated in favour ofget_fdata
.Until version 5.0.0 of nibabel this would have merely triggered a deprecation warning, but given that MDT does not pin its required version of nibabel to below 5.0.0 and NiBabel is now at 5.1.0, any fresh virtual env installation of MDT will pull an incompatible nibabel with it.
Below is a log of one such error:
This error also occurs for the usage of np.bool in NumPy greater than or equal to version 1.24.0 as well:
This issue can be temporarily bandaged by specifying nibabel==4.0.2 and numpy==1.23.5 when setting up a virtual env, but of course that's just a quick fix on our end.