ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
Revision: 11
Committed: Mon Apr 12 22:59:57 2010 UTC (9 years, 2 months ago) by clausted
File size: 760 byte(s)
Log Message:
Introduce vu_module.py for viewing ba objects.  This GUI uses Tk and has buttons to allow users to move through the sensorgrams six-at-a-time.  The traces can be dotted or continuous lines or both.  Specify two ba objects and the first will be dotted while the second will be continuous.  This could be useful for comparing real and simulated data. --CGL 
Line File contents
1 """
2 Christopher Lausted, Institute for Systems Biology
3 Last modified on 100408 (yymmdd)
4 Small script to test ba_class, io_module, etc.
5 """
6
7 ## Import modules.
8 import vu_module as vu
9 import io_module as io
10 ## Reload in case code has changed.
11 reload (vu)
12 reload(io)
13
14 #ba1 = io.readbiosensor("example-biosensor.txt")
15 ba1 = io.readicmtxt("example-icm.txt")
16 #ba1 = io.readsprit("example-sprit.txt")
17 #ba1 = io.applykey(ba1, "example-key.tsv")
18 #ba1.set_plot_all()
19 #ba1.set_plot_list(range(6))
20 #ba1.plot()
21
22 #io.writesprit(ba1,"testwritesprit.txt")
23 #io.writeclamp(ba1,"testwriteclamp.txt")
24 #io.writebiosensor(ba1, "testwritebiosensor.txt")
25
26 vu.linegraph(ba1)
27 vu.dotgraph(ba1)
28 vu.dualgraph(ba1, ba1)
29
30 input("Done with test. Press any key")