From 496a76759dcb865dd1ac3366a2269cca1c8f5385 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Fri, 8 Nov 2024 17:34:14 +0100 Subject: [PATCH] fix function --- src/utils/extract_uns_metadata/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/extract_uns_metadata/script.py b/src/utils/extract_uns_metadata/script.py index b62872af0..ac5e93f13 100644 --- a/src/utils/extract_uns_metadata/script.py +++ b/src/utils/extract_uns_metadata/script.py @@ -42,7 +42,7 @@ def is_atomic(obj): def to_atomic(obj): if isinstance(obj, (np.int32,np.int64)): return int(obj) - elif isinstance(obj, np.float32,np.float64): + elif isinstance(obj, (np.float32,np.float64)): return float(obj) elif isinstance(obj, np.bool_): return bool(obj)