From 1320f827eeaed2c712d51dce21b2b3be98cc0031 Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Tue, 28 Sep 2021 13:19:21 +0200 Subject: [PATCH] - cast to float, in case it is a numpy type --- copasi_petab_importer/convert_petab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copasi_petab_importer/convert_petab.py b/copasi_petab_importer/convert_petab.py index d615904..251806f 100644 --- a/copasi_petab_importer/convert_petab.py +++ b/copasi_petab_importer/convert_petab.py @@ -780,8 +780,8 @@ def add_value_transform(value, index, obs): if obs_param is None or \ not isinstance(obs_param, COPASI.CModelValue): return False - obs_param.setValue(value) - obs_param.setInitialValue(value) + obs_param.setValue(float(value)) + obs_param.setInitialValue(float(value)) return True return False