def test_load_save_models(self): """ Tests that loading and saving SMBL doesn't fail """ covers(["loadSBMLFromFile", "getSBML", "loadSBML"]) rrPython.loadSBMLFromFile(resource_filename("roadrunnerlib", "data/feedback.xml")) model = rrPython.getSBML() self.assertIsNotNone(model) rrPython.loadSBML(model)
def setUp(self): rrPython.loadSBMLFromFile(resource_filename("roadrunnerlib", "data/feedback.xml"))
def test_load_and_simulate(self): model = resource_filename('roadrunnerlib','data/feedback.xml') rrPython.loadSBMLFromFile(model) rrPython.simulate()
from roadrunnerlib import rrPython from pkg_resources import resource_filename model = resource_filename('roadrunnerlib','data/simple.xml') rrPython.loadSBMLFromFile(model) rrPython.setSteadyStateSelectionList('time S1 S2') results = rrPython.simulateEx(0.0,2.0,20) print results
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