Skip to content

Commit 1320f82

Browse files
committed
- cast to float, in case it is a numpy type
1 parent d9b532a commit 1320f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

copasi_petab_importer/convert_petab.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -780,8 +780,8 @@ def add_value_transform(value, index, obs):
780780
if obs_param is None or \
781781
not isinstance(obs_param, COPASI.CModelValue):
782782
return False
783-
obs_param.setValue(value)
784-
obs_param.setInitialValue(value)
783+
obs_param.setValue(float(value))
784+
obs_param.setInitialValue(float(value))
785785
return True
786786
return False
787787

0 commit comments

Comments
 (0)