ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
(Generate patch)
# Line 4 | Line 4
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.readsprit("example-sprit.txt")
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 < ba2 = io.applykey(ba1, "example-key.tsv")
27 < #ba2.set_plot_all()
28 < #ba2.plot()
26 > vu.linegraph(ba1)
27 > vu.dotgraph(ba1)
28 > vu.dualgraph(ba1, ba1)
29  
30 < ba3 = io.readicmtxt("example-icm.txt")
22 < ba3.set_plot_all()
23 < ba3.plot()
24 <
25 < print "Done with test."
30 > input("Done with test. Press any key")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines