Skip to content

Commit 577ff82

Browse files
authored
deprecate old numpy type and add missing numpy type (#1253)
1 parent 27e88bb commit 577ff82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynestml/utils/cloning_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def clone_numeric_literal(numeric_literal):
3030
# Python basic type
3131
return numeric_literal
3232

33-
if type(numeric_literal) in [np.int, np.int8, np.int16, np.int32, np.int64]:
33+
if type(numeric_literal) in [np.int8, np.int16, np.int32, np.int64, np.float64]:
3434
# NumPy types
3535
return numeric_literal.copy()
3636

0 commit comments

Comments
 (0)