To check whether everything is working first try to import tellurium:
import tellurium as te
Running a simple testing script is a good way to test whether Tellurium is working. Do this by copy and pasting the following script and executing it. If it is successful you should get a graph showing oscillations.
import tellurium as te r = te.loada (''' model feedback() // Reactions: J0: $X0 ->; S1; (VM1 * (X0 - S1/Keq1))/(1 + X0 + S1 + S4^h); J1: S1 ->; S2; (10 * S1 - 2 * S2) / (1 + S1 + S2); J2: S2 ->; S3; (10 * S2 - 2 * S3) / (1 + S2 + S3); J3: S3 ->; S4; (10 * S3 - 2 * S4) / (1 + S3 + S4); J4: S4 ->; $X1; (V4 * S4) / (KS4 + S4); // Species initializations: S1 = 0; S2 = 0; S3 = 0; S4 = 0; X0 = 10; X1 = 0; // Variable initialization: VM1 = 10; Keq1 = 10; h = 10; V4 = 2.5; KS4 = 0.5; end''') res = r.simulate(0, 40, 500) r.plot()
A full scale testing suite can be executed by running following codes:
import tellurium.tests.test_runner as tetest runner = tetest.TestRunner() runner.te_passes_tests()
If the output is true, Tellurium passed all tests and is working without any errors. libRoadRunner comes with its own test suite, which is part of the Tellurium test suite. To run it individually, execute following lines of code in the console.
import roadrunner as rr rr.runTests()
It will run the RoadRunner test suite by itself and print out number of failed, skipped, and passed tests.
Total failed tests: 0
Total unknown tests: 6
Total passed tests: 350