def setGetTimeCourseSelectionList(testId): print string.ljust("Check " + testId, rpadding), errorFlag = False myList = rrPython.getFloatingSpeciesIds() newList = list(myList) random.shuffle(newList) rrPython.setTimeCourseSelectionList(newList) if rrPython.getTimeCourseSelectionList() != newList: errorFlag = True print passMsg(errorFlag)
def setGetTimeCourseSelectionList(testId): print string.ljust ("Check " + testId, rpadding), errorFlag = False myList = rrPython.getFloatingSpeciesIds() newList = list (myList) random.shuffle (newList) rrPython.setTimeCourseSelectionList (newList) if rrPython.getTimeCourseSelectionList() != newList: errorFlag = True print passMsg (errorFlag)
def checkSetTimeCourseSelectionList(testId): print string.ljust("Check " + testId, rpadding), errorFlag = False line = readLine() result = rrPython.setTimeCourseSelectionList(line) if result == False: errorFlag = True print passMsg(errorFlag)
def checkSetTimeCourseSelectionList(testId): print string.ljust ("Check " + testId, rpadding), errorFlag = False line = readLine () result = rrPython.setTimeCourseSelectionList (line) if result == False: errorFlag = True print passMsg (errorFlag)
import os import rrPython print 'RoadRunner Build Date: ' + rrPython.getCopyright() startTime = 0 endTime = 5 numPoints = 50 selList="time,S1,S2" result = rrPython.loadSBMLFromFile("..\\Models\\test_1.xml") rrPython.setTimeStart(startTime) rrPython.setTimeEnd(endTime) rrPython.setNumPoints(numPoints) rrPython.setTimeCourseSelectionList(selList) k = rrPython.simulate() print k print "done"