Skip to content

Commit

Permalink
Merge pull request #482 from BlueBrain/np2
Browse files Browse the repository at this point in the history
Make examples compatible with numpy2
  • Loading branch information
AurelienJaquier committed Jan 10, 2024
2 parents 5232a8f + 5948bf7 commit f56a38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/l5pc_lfpy/generate_extra_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f56a38f

Please sign in to comment.