Skip to content

Commit

Permalink
Merge pull request #165 from AurelienJaquier/np2
Browse files Browse the repository at this point in the history
Make BluePyEfe compatible with numpy2
  • Loading branch information
AurelienJaquier committed Jan 10, 2024
2 parents f46caab + fbbe5d8 commit 2db0f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluepyefe/tools.py
Expand Up @@ -156,7 +156,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 2db0f81

Please sign in to comment.