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 + import cal_module as cal
11 + ## Reload in case code has changed.
12 + reload (vu)
13   reload(io)
14 + reload(cal)
15  
16 < ba1 = io.readsprit("example-sprit.txt")
16 > #ba1 = io.readbiosensor("example-biosensor.txt")
17 > ba1 = io.readicmtxt("example-icm.txt")
18 > #ba1 = io.readsprit("example-sprit.txt")
19 > #ba1 = io.applykey(ba1, "example-key.tsv")
20   #ba1.set_plot_all()
21 + #ba1.set_plot_list(range(6))
22   #ba1.plot()
23  
24   #io.writesprit(ba1,"testwritesprit.txt")
25   #io.writeclamp(ba1,"testwriteclamp.txt")
26 + #io.writebiosensor(ba1, "testwritebiosensor.txt")
27  
28 < ba2 = io.applykey(ba1, "example-key.tsv")
29 < #ba2.set_plot_all()
30 < #ba2.plot()
20 <
21 < ba3 = io.readicmtxt("example-icm.txt")
22 < ba3.set_plot_all()
23 < ba3.plot()
28 > vu.linegraph(ba1)
29 > #vu.dotgraph(ba1)
30 > #vu.dualgraph(ba1, ba1)
31  
32 < print "Done with test."
32 > ba2 = cal.calibrate(ba1, ba1, 1950, 2025)
33 > vu.linegraph(ba2)
34 >
35 > input("Done with test. Press any key")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines