Skip to content

Commit

Permalink
Fix sbml export with unset compartment size (#513)
Browse files Browse the repository at this point in the history
Undefined compartment sizes will now default to 1 as per the documentation.
  • Loading branch information
FFroehlich committed Sep 17, 2020
1 parent a4a2f15 commit d71ac85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysb/export/sbml.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def convert(self, level=(3, 2)):
_check(c)
_check(c.setId(cpt.name))
_check(c.setSpatialDimensions(cpt.dimension))
_check(c.setSize(cpt.size.value))
_check(c.setSize(1 if cpt.size is None else cpt.size.value))
_check(c.setConstant(True))
else:
c = smodel.createCompartment()
Expand Down

0 comments on commit d71ac85

Please sign in to comment.