digitalearthau icon indicating copy to clipboard operation
digitalearthau copied to clipboard

This repo uses numpy.bool which is not compatible with recent versions of numpy

Open SpacemanPaul opened this issue 1 year ago • 1 comments

As reported on Slack, the numpy.bool type is used in https://github.com/GeoscienceAustralia/digitalearthau/blob/develop/digitalearthau/utils.py (and possibly elsewhere in this repo).

Recent versions of numpy fail on this with an AttributeError:

np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here. The aliases was originally deprecated in NumPy 1.20

SpacemanPaul avatar Jun 19 '23 02:06 SpacemanPaul