示例#1
0
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)
示例#2
0
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)
示例#3
0
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)
示例#4
0
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)
示例#5
0
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"