Skip to content
Snippets Groups Projects
Commit bd6e8210 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

species reference contain hardcoded constant value

parent de6696f3
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!508Resolve "Export to SBML results in invalid SBML file"
......@@ -77,11 +77,13 @@ public class SbmlReactionExporter extends SbmlBioEntityExporter<Reaction, org.sb
for (Product product : reaction.getProducts()) {
Species sbmlSymbol = speciesExporter.getSbmlElementByElementId(product.getElement().getElementId());
SpeciesReference speciesReference = result.createProduct(sbmlSymbol);
speciesReference.setConstant(true);
speciesReferenceByReactionNode.put(product, speciesReference);
}
for (Reactant reactant : reaction.getReactants()) {
Species sbmlSymbol = speciesExporter.getSbmlElementByElementId(reactant.getElement().getElementId());
SpeciesReference speciesReference = result.createReactant(sbmlSymbol);
speciesReference.setConstant(true);
speciesReferenceByReactionNode.put(reactant, speciesReference);
}
for (Modifier modifier : reaction.getModifiers()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment