From 5948bf7a98ec4318f4a5d13d9a51b0e0267a4ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaquier=20Aur=C3=A9lien=20Tristan?= Date: Wed, 10 Jan 2024 10:46:35 +0100 Subject: [PATCH] Make examples compatible with numpy2 --- examples/l5pc_lfpy/generate_extra_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l5pc_lfpy/generate_extra_features.py b/examples/l5pc_lfpy/generate_extra_features.py index 98b8ce23..1679eda6 100644 --- a/examples/l5pc_lfpy/generate_extra_features.py +++ b/examples/l5pc_lfpy/generate_extra_features.py @@ -71,7 +71,7 @@ def default(self, obj): ): return int(obj) elif isinstance( - obj, (numpy.float_, numpy.float16, numpy.float32, numpy.float64) + obj, (numpy.float16, numpy.float32, numpy.float64) ): return float(obj) elif isinstance(obj, numpy.ndarray):