From 43765092c3bbde7f156fc1c5c1b4038ba7bb4583 Mon Sep 17 00:00:00 2001 From: gluap Date: Sat, 10 Jun 2023 19:37:34 +0200 Subject: [PATCH] fix issue when displaying mapdetails (newer numpy deprecates numpy.bool, it was always an alias for bool apparently) --- api/obs/api/routes/mapdetails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/obs/api/routes/mapdetails.py b/api/obs/api/routes/mapdetails.py index ef82c74..1565fc1 100644 --- a/api/obs/api/routes/mapdetails.py +++ b/api/obs/api/routes/mapdetails.py @@ -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]