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

Commit f56a38f

Browse files
Merge pull request #482 from BlueBrain/np2
Make examples compatible with numpy2
2 parents 5232a8f + 5948bf7 commit f56a38f

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)