3 import matplotlib.pyplot
as plot
6 from teplugins
import *
13 print 'The plugin was started'
15 def pluginIsProgressing(val):
16 pluginHandle = cast(val, ctypes.py_object).value
20 def pluginIsFinished():
21 print 'The plugin did finish'
25 rr = roadrunner.RoadRunner()
28 modelPlugin = Plugin(
"tel_test_model")
29 sbmlModel= modelPlugin.Model
37 data = rr.simulate(timeStart, timeEnd, numPoints)
52 progressEvent = NotifyEventEx(pluginIsProgressing)
56 theId = id(pluginHandle)
63 d = getDataSeries (data)
75 plotTelluriumData(rrData, colNames)
80 except Exception
as e:
81 print 'Exception: ' + `e`