Skip to content

Commit

Permalink
function removed since numpy 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Sep 15, 2024
1 parent 9e93af8 commit 3e11acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stytra/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def prepare_json(it, **kwargs):
if isinstance(it, list):
return [prepare_json(el, **kwargs) for el in it]
if isinstance(it, np.generic):
return np.asscalar(it)
return it.item()
if isinstance(it, datetime):
if kwargs.get("convert_datetime", False):
return it.isoformat()
Expand Down

0 comments on commit 3e11acb

Please sign in to comment.