ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/osprai/osprai/trunk/test.py
(Generate patch)
# Line 1 | Line 1
1   """
2   Christopher Lausted, Institute for Systems Biology
3 < Last modified on 100408 (yymmdd)
3 > Last modified on 100413 (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 + import cal_module as cal
11   ## Reload in case code has changed.
12   reload (vu)
13   reload(io)
14 + reload(cal)
15  
16 + print "Loading an SPR data file..."
17   #ba1 = io.readbiosensor("example-biosensor.txt")
18   ba1 = io.readicmtxt("example-icm.txt")
19   #ba1 = io.readsprit("example-sprit.txt")
# Line 23 | Line 26
26   #io.writeclamp(ba1,"testwriteclamp.txt")
27   #io.writebiosensor(ba1, "testwritebiosensor.txt")
28  
29 + print "Plotting the raw data file..."
30   vu.linegraph(ba1)
31 < vu.dotgraph(ba1)
32 < vu.dualgraph(ba1, ba1)
31 > #vu.dotgraph(ba1)
32 > #vu.dualgraph(ba1, ba1)
33  
34 < input("Done with test. Press any key")
34 > print "Plotting the calibrated data..."
35 > ba2 = cal.calibrate(ba1, ba1, 2850, 3120)
36 > vu.linegraph(ba2, "Calibrated SPR Data")
37 >
38 > print "Use ROI #16 as background, subtract, and plot..."
39 > cal.bgset(ba2, 16)
40 > ba2 = cal.bgsubt(ba2)
41 > vu.linegraph(ba2, "Calibrated & Referenced SPR Data")
42 >
43 > print "Test of scatterplot using time points 500, 1000, 1500, 2000"
44 > vu.scatterplot(ba2, 3600, 4200, 3600, 4700, "Scatterplot")
45 >
46 > print "Done with test."
47 > #input("Done with test. Press any key")

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines