Пример #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"