Appendix G
TABLE 1: Example Python Script for User-defined Reports (continued)
26. mic.table.addcolumn( "Column 1",
27.
["1", "2.5", "%8.3f" % np.exp(5.0)] )
28. mic.table.addcolumn( "Column 2",
29.
["Val A", "Val B", "Val C" % np.exp(5.0)] )
30. mic.table.addtable( "Table Two" )
31. mic.table.addcolumn( "Column A", ["Small", "Smaller"] )
32. mic.table.addcolumn( "Column B", ["Big", "Bigger"] )
33. # Another tabular report
34. mic.table( "Tabular Report Two" )
35. mic.table.addtable( "One" )
36. mic.table.addcolumn( "Column A", ["Small", "Smaller"] )
37. mic.table.addcolumn( "Column B", ["Big", "Bigger"] )
38. mic.table.addcolumn( "Column C", ["Embiggen",
"Cromulent"] )
39. # A summary report
40. mic.summary( "A summary report" )
41. mic.summary.add( "Quantity Adsorbed",
42.
["First", "Last"],
43.
["%8.3f" % qads[0], "%8.3f" % qads[-1] )
44. mic.summary.add( "Rel Pressure",
45.
["First", "Last"],
46.
["%8.3f" % prel[0], "%8.3f" % prel[-1] )
Note that the mic module is automatically imported when the user script is run. For test purposes, a
mic.pyc pre-compiled module will be provided.
G-2
ASAP 2460 Operator's Manual
Add columns to the table. Note
that the column values are
strings; this allows arbitrary
formatting.
Add another table.
Add a summary report.
Add sections to the summary
report. Note that summary
sections are just specialized
reports with two columns and no
column headers.
246-42800-01 - Aug 2013
Need help?
Do you have a question about the ASAP 2460 and is the answer not in the manual?