Closed leodarrigade closed 1 month ago
The problem is that 'exportToSBML' exports the current state of the model, not the initial state. If you notice the other values, everything has basically reached steady state: LRe is at 1, and everything else is at zero. If you want the initial state, add the argument 'current=False' to 'exportToSBML':
r.exportToSBML('truc.xml', current=False)
Alternatively, you can always call the function before simulation:
r = te.loada(antimony_str) # returns a RoadRunner instance with the model loaded
r.exportToSBML('truc_orig1.xml')
r.simulate(0, 200, 500)
r.plot()
r.exportToSBML('truc_current.xml')
r.exportToSBML('truc_orig2.xml', current=False)
Ok, thank you very much !
Hello, First, thank you for developping Antimony, it is very useful for writing simple SBML model ! I have the following code that define an Antimony model, does a plot of the dynamic and export it to SBML.
The plot is fine and I don't get any error message. However, in the species definition of the SBML, this is what I get
The initialAmount of LRe is 1 but it should be 0.
This is done with Tellurium == 2.2.10.