def test_things_that_need_simulate(self): covers(["simulate", "getReactionRatesEx", "getRatesOfChangeEx", "getResultColumnLabel", "getMatrixNumRows"]) rrPython.simulate() rrPython.getReactionRatesEx([1.0, 0.9, 0.8, 0.6]) rrPython.getRatesOfChangeEx([1.0, 0.9, 0.8, 0.6]) rrPython.getResultColumnLabel() rrPython.getMatrixNumRows()
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 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
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