From bedf746339d87adb35a76e40cb376064a10bc530 Mon Sep 17 00:00:00 2001 From: "C.A.P. Linssen" Date: Fri, 3 Oct 2025 20:22:52 +0200 Subject: [PATCH] deprecate old numpy type and add missing numpy type --- pynestml/utils/cloning_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynestml/utils/cloning_helpers.py b/pynestml/utils/cloning_helpers.py index 5b9976c93..d1ca3b929 100644 --- a/pynestml/utils/cloning_helpers.py +++ b/pynestml/utils/cloning_helpers.py @@ -30,7 +30,7 @@ def clone_numeric_literal(numeric_literal): # Python basic type return numeric_literal - if type(numeric_literal) in [np.int, np.int8, np.int16, np.int32, np.int64]: + if type(numeric_literal) in [np.int8, np.int16, np.int32, np.int64, np.float64]: # NumPy types return numeric_literal.copy()