ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
Revision: 9
Committed: Sat Apr 10 00:21:02 2010 UTC (9 years, 4 months ago) by clausted
File size: 595 byte(s)
Log Message:
Add readbiosensor() and writebiosensor() capabilities to io_module.  
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     import io_module as io
8 clausted 9 reload(io) ## In case io_module code has changed.
9 clausted 7
10 clausted 9 ba1 = io.readbiosensor("example-biosensor.txt")
11     #ba1 = io.readicmtxt("example-icm.txt")
12     #ba1 = io.readsprit("example-sprit.txt")
13     #ba1 = io.applykey(ba1, "example-key.tsv")
14     ba1.set_plot_all()
15     ba1.plot()
16 clausted 7
17     #io.writesprit(ba1,"testwritesprit.txt")
18     #io.writeclamp(ba1,"testwriteclamp.txt")
19 clausted 9 io.writebiosensor(ba1, "testwritebiosensor.txt")
20 clausted 7
21     print "Done with test."