Skip to content

Commit

Permalink
Merge pull request #647 from StochSS/hotfix-nan-sbml-param
Browse files Browse the repository at this point in the history
HOTFIX: SBML Parameters w/o value
  • Loading branch information
briandrawert authored Dec 2, 2021
2 parents 6958af6 + 1d00f74 commit 1b6d9e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gillespy2/sbml/SBMLimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def __get_parameters(sbml_model, gillespy_model):
for i in range(sbml_model.getNumParameters()):
parameter = sbml_model.getParameter(i)
name = parameter.getId()
value = parameter.getValue()
if parameter.isSetValue():
value = parameter.getValue()
else:
value = 0
init_state[name] = value

# GillesPy2 represents non-constant parameters as species
Expand Down

0 comments on commit 1b6d9e0

Please sign in to comment.