Booritas / slideio

BSD 3-Clause "New" or "Revised" License
49 stars 2 forks source link

Question: numpy >= 2.0 support #31

Closed IvanKosik closed 1 week ago

IvanKosik commented 3 weeks ago

Did I understand correctly that numpy >= 2.0 is not supported at the moment?

I have tested slideio 2.5.0 and 2.6.0 with numpy 2.0.0 and numpy 2.1.0 trying to read *.svs image (using Python 3.10.14). The resulted numpy block contained all white pixels (all values are 255). At the same time, everything works amazing with numpy 1.26.4.

Booritas commented 3 weeks ago

Thank you for your message. I'm currently refactoring the code and preparing a new version that will support NumPy 2.0 and above. I anticipate having it ready by the end of August or the beginning of September.

Booritas commented 1 week ago

I just released version 2.6.2, which resolves the issue and now includes support for NumPy version 2 and above. Please let me know if it works for you.

IvanKosik commented 1 week ago

Thank you very much for the prompt release with this enhancement and for the great library! Version 2.6.2 works great with NumPy >= 2.0: *.svs images are read correctly.