Skip to content

Commit

Permalink
- cast to float, in case it is a numpy type
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Sep 28, 2021
1 parent d9b532a commit 1320f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions copasi_petab_importer/convert_petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1320f82

Please sign in to comment.