fix issue when displaying mapdetails (newer numpy deprecates numpy.bool, it was always an alias for bool apparently)

This commit is contained in:
gluap 2023-06-10 19:37:34 +02:00
parent 1a1232f2a7
commit 43765092c3
No known key found for this signature in database

View file

@ -88,7 +88,7 @@ async def mapdetails_road(req):
data, mask = arrays[:-1], arrays[-1] data, mask = arrays[:-1], arrays[-1]
data = data.astype(numpy.float64) data = data.astype(numpy.float64)
mask = mask.astype(numpy.bool) mask = mask.astype(bool)
def partition(arr, cond): def partition(arr, cond):
return arr[:, cond], arr[:, ~cond] return arr[:, cond], arr[:, ~cond]