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):