fix issue when displaying mapdetails (newer numpy deprecates numpy.bool, it was always an alias for bool apparently)
This commit is contained in:
parent
1a1232f2a7
commit
43765092c3
|
@ -88,7 +88,7 @@ async def mapdetails_road(req):
|
|||
|
||||
data, mask = arrays[:-1], arrays[-1]
|
||||
data = data.astype(numpy.float64)
|
||||
mask = mask.astype(numpy.bool)
|
||||
mask = mask.astype(bool)
|
||||
|
||||
def partition(arr, cond):
|
||||
return arr[:, cond], arr[:, ~cond]
|
||||
|
|
Loading…
Reference in a new issue