quintusdias / glymur

Python interface to OpenJPEG library for reading and writing JPEG 2000 images.
MIT License
58 stars 24 forks source link

Qualify on numpy 2.0 #653

Closed quintusdias closed 4 months ago

quintusdias commented 4 months ago

There seem to be some changes wrt how scalar values get printed.

quintusdias commented 4 months ago

The issue stems from how item accesses np.arrays now works. The precinct sizes are parse as a numpy array, then further processed, item by item. Prior to numpy 2.0, it would seem that the display of such an item did not show "np.uint" scaffolding, but as of numpy 2.0, they do.