From dd912bcd0d306fe727b353cb6dbf7e815cf42faa Mon Sep 17 00:00:00 2001 From: gluap Date: Tue, 28 Mar 2023 23:15:55 +0200 Subject: [PATCH] `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here. --- 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 5b0eba3..40c6edc 100644 --- a/api/obs/api/routes/mapdetails.py +++ b/api/obs/api/routes/mapdetails.py @@ -82,7 +82,7 @@ async def mapdetails_road(req): arrays = numpy.array(arrays).T if len(arrays) == 0: - arrays = numpy.array([[], [], [], []], dtype=numpy.float) + arrays = numpy.array([[], [], [], []], dtype=float) data, mask = arrays[:-1], arrays[-1] data = data.astype(numpy.float64)