Skip to content

Commit

Permalink
Prepare for NumPy 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo authored and mvdbeek committed Jun 21, 2024
1 parent 7c6fc18 commit bcca24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/custom_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SafeJsonEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, numpy.int_):
return int(obj)
elif isinstance(obj, numpy.float_):
elif isinstance(obj, numpy.float64):
return float(obj)
elif isinstance(obj, bytes):
return unicodify(obj)
Expand Down

0 comments on commit bcca24b

Please sign in to comment.