From 8a7942290a7e2081448a8405138bc89a35700f64 Mon Sep 17 00:00:00 2001 From: Pariterre Date: Thu, 3 Jun 2021 14:47:00 -0400 Subject: [PATCH] All the integer in python --- binding/python3/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binding/python3/__init__.py b/binding/python3/__init__.py index 3670aba8..c5024455 100644 --- a/binding/python3/__init__.py +++ b/binding/python3/__init__.py @@ -278,8 +278,8 @@ def add_parameter( param_ezc3d = ezc3d.Parameter(parameter_name, description) if isinstance(value, (list, tuple)): value = np.array(value) - if value.dtype == "int64": - value = value.astype(np.float) + if np.issubdtype(value.dtype, np.integer): + value = value.astype(np.float64) if isinstance(value, np.ndarray): param_ezc3d.set(value.reshape(-1, order="F"), value.shape)