Skip to content

Commit

Permalink
set constant and boundary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed Nov 8, 2023
1 parent 4c40edb commit ad33708
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reframed/io/sbml.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ def save_metabolites(model, sbml_model, flavor=None):
species.setName(metabolite.name)
species.setCompartment(metabolite.compartment)
species.setHasOnlySubstanceUnits(True)
species.setConstant(False)
species.setBoundaryCondition(model.compartments[metabolite.compartment].external)

if flavor in {Flavor.BIGG.value, Flavor.FBC2.value}:
fbc_species = species.getPlugin('fbc')
Expand Down

0 comments on commit ad33708

Please sign in to comment.