Skip to content

Commit

Permalink
Fixed issue with parameters without values.
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanRumsey committed Nov 29, 2021
1 parent 8162083 commit 1d00f74
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 1d00f74

Please sign in to comment.