Closed fhnaumann closed 1 year ago
Thanks for the report @wand555.
It looks like the error comes from this numpy evaluation::
corners_rgb = np.ix_(CORNERS_X, CORNERS_Y, range(TRANSPARENCY))
if np.all(data[corners_rgb] == background):
...
With the numpy version I have this raises a warning:
DeprecationWarning: elementwise comparison failed; this will raise an error in the future.
Changing corners_rgb to:
corners_rgb = np.ix_(CORNERS_X, CORNERS_Y)
Looks to fix the issue. Will make some tests to ensure that this is correct.
Thanks. For now I will stick with using an older numpy version until you do a new release.
This issue is fixed in #78 .
When converting the openslide sample data for the Leica SCN format, I encountered an error which I didn't have some time ago. After some testing I can confirm (at least for Leica SCN format) that the exception is caused with numpy relase 1.25. Using numpy version 1.24.3 works fine and generates the dicom files. Running
wsidicomizer -i "Leica SCN.tiff" -o .
I get the following exception:Dependencies: