ubarsc / tuiview

TuiView is a lightweight raster GIS with powerful raster attribute table manipulation abilities
http://tuiview.org/
GNU General Public License v2.0
26 stars 13 forks source link

Fixed (now) deprecated usage of numpy.bool and numpy.float #37

Closed bhjolly closed 1 year ago

bhjolly commented 1 year ago

RE: issue 36 (https://github.com/ubarsc/tuiview/issues/36#issue-1507025393)

As of numpy>=1.24 using numpy.bool or numpy.float is not supported and breaks things. As per link below, changed to bool and float instead. Seems to build/install fine with python=3.11 and numpy=1.24. Also works with python=3.9 and numpy=1.19.

https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated

gillins commented 1 year ago

Thanks @bhjolly ! @neilflood has done RIOS and python-fmask and made new releases of them for numpy 1.24. I'll do a new tuiview release now. Let us know if you find anything else.