Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 5948bf7

Browse files
author
Jaquier Aurélien Tristan
committed
Make examples compatible with numpy2
1 parent 5232a8f commit 5948bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/l5pc_lfpy/generate_extra_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def default(self, obj):
7171
):
7272
return int(obj)
7373
elif isinstance(
74-
obj, (numpy.float_, numpy.float16, numpy.float32, numpy.float64)
74+
obj, (numpy.float16, numpy.float32, numpy.float64)
7575
):
7676
return float(obj)
7777
elif isinstance(obj, numpy.ndarray):

0 commit comments

Comments
 (0)