From 5f4a3fd1cbbfe3aadf5128f05806c9fcba976f7c Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 19 Jun 2024 12:19:14 +0100 Subject: [PATCH] Prepare for NumPy 2.0 --- lib/galaxy/model/custom_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/custom_types.py b/lib/galaxy/model/custom_types.py index f36b4b9a6130..762c203eade4 100644 --- a/lib/galaxy/model/custom_types.py +++ b/lib/galaxy/model/custom_types.py @@ -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)