from roadrunnerlib import rrPython
from pkg_resources import resource_filename

import os

model = resource_filename('roadrunnerlib','data/feedback.xml')

sbml = rrPython.loadSBMLFromFile(model)
rrPython.setTimeStart(0.0)
rrPython.setTimeEnd(3.0)
rrPython.setNumPoints(20)
rrPython.setSteadyStateSelectionList("time S1 S2 S3 S4")
results = rrPython.simulate()

print results
Exemplo n.º 2
0
from roadrunnerlib import rrPython
from pkg_resources import resource_filename

print 'RoadRunner Python'
print rrPython.getCopyright()
print 'Build on ' + rrPython.getBuildDate()

startTime = 0
endTime = 5
numPoints = 50
selList="time,S1,S2"


model = resource_filename('roadrunnerlib','data/test_1.xml')
result = rrPython.loadSBMLFromFile(model)

rrPython.setTimeStart(startTime)
rrPython.setTimeEnd(endTime)
rrPython.setNumPoints(numPoints)
rrPython.setTimeCourseSelectionList(selList)
k = rrPython.simulate()

print k