def setGetSteadyStateSelectionList(testId): print string.ljust ("Check " + testId, rpadding), errorFlag = False myList = rrPython.getFloatingSpeciesIds() newList = list (myList) while newList == myList: random.shuffle (newList) rrPython.setSteadyStateSelectionList (newList) getList = rrPython.getSteadyStateSelectionList() if getList != newList: errorFlag = True print passMsg (errorFlag)
def setGetSteadyStateSelectionList(testId): print string.ljust("Check " + testId, rpadding), errorFlag = False myList = rrPython.getFloatingSpeciesIds() newList = list(myList) while newList == myList: random.shuffle(newList) rrPython.setSteadyStateSelectionList(newList) getList = rrPython.getSteadyStateSelectionList() if getList != newList: errorFlag = True print passMsg(errorFlag)
def checkSetSteadyStateSelectionList(testId): print string.ljust("Check " + testId, rpadding), errorFlag = False line = readLine() result = rrPython.setSteadyStateSelectionList(line) if result == False: errorFlag = True print passMsg(errorFlag)
def checkSetSteadyStateSelectionList(testId): print string.ljust ("Check " + testId, rpadding), errorFlag = False line = readLine () result = rrPython.setSteadyStateSelectionList (line) if result == False: errorFlag = True print passMsg (errorFlag)
def mySetSteadyStateSelectionList(testId): line = readLine() rrPython.setSteadyStateSelectionList(line)
def mySetSteadyStateSelectionList(testId): line = readLine () rrPython.setSteadyStateSelectionList (line)
import rrPython import os modelPath = ('C:\\roadRunner\\models\\feedback.xml') sbml = rrPython.loadSBMLFromFile(modelPath) rrPython.setTimeStart(0.0) rrPython.setTimeEnd(3.0) rrPython.setNumPoints(20) rrPython.setSteadyStateSelectionList("time S1 S2 S3 S4") results = rrPython.simulate() print results
import rrPython rrPython.loadSBMLFromFile('C:\\roadRunner\\models\\simple.xml') rrPython.setSteadyStateSelectionList('time S1 S2') results = rrPython.simulateEx(0.0,2.0,20) print results
import rrPython import os import csv os.chdir('C:\\RoadRunner\\bin') function = 'setSteadyStateSelectionList' rrPython.loadSBMLFromFile('C:\\RoadRunner\\Models\\feedback.xml') try: list = rrPython.setSteadyStateSelectionList('S1') if str(list) is not False: result = 'True' else: result = 'False' except: result = 'False' PythonTestResults = open('C:\\RoadRunner\\PythonTestResults.csv','a') writer = csv.writer(PythonTestResults) writevar = function + '=' + result writer.writerow([writevar]) PythonTestResults.close()