JoHof / lungmask

Automated lung segmentation in CT
Apache License 2.0
669 stars 150 forks source link

numpy 1.24 compatibility #70

Closed rbturnbull closed 1 year ago

rbturnbull commented 1 year ago

Hi!

numpy >= 1.24.0 now no longer includes the alias to np.float (used on lungmask/utils.py:101). See

To make it work with the current version of numpy, it can be changed to just the regular builtin 'float' or 'np.float64' or 'np.double'. I'll submit a PR with the change to 'float' but you can choose one of the other options if you like.