ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
Revision: 12
Committed: Tue Apr 13 01:33:13 2010 UTC (9 years, 2 months ago) by clausted
File size: 865 byte(s)
Log Message:
Addition of cal_module to provide a calibration tool and related features.  Added the time2val function to the ba class.  It has a bug now, but it will be useful for the calibration tool.
Line User Rev File contents
1 clausted 7 """
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 clausted 11 ## Import modules.
8     import vu_module as vu
9 clausted 7 import io_module as io
10 clausted 12 import cal_module as cal
11 clausted 11 ## Reload in case code has changed.
12     reload (vu)
13     reload(io)
14 clausted 12 reload(cal)
15 clausted 7
16 clausted 11 #ba1 = io.readbiosensor("example-biosensor.txt")
17     ba1 = io.readicmtxt("example-icm.txt")
18 clausted 9 #ba1 = io.readsprit("example-sprit.txt")
19     #ba1 = io.applykey(ba1, "example-key.tsv")
20 clausted 11 #ba1.set_plot_all()
21     #ba1.set_plot_list(range(6))
22     #ba1.plot()
23 clausted 7
24     #io.writesprit(ba1,"testwritesprit.txt")
25     #io.writeclamp(ba1,"testwriteclamp.txt")
26 clausted 11 #io.writebiosensor(ba1, "testwritebiosensor.txt")
27 clausted 7
28 clausted 11 vu.linegraph(ba1)
29 clausted 12 #vu.dotgraph(ba1)
30     #vu.dualgraph(ba1, ba1)
31 clausted 11
32 clausted 12 ba2 = cal.calibrate(ba1, ba1, 1950, 2025)
33     vu.linegraph(ba2)
34    
35 clausted 11 input("Done with test. Press any key")