Appendix G ASAP 2460 Operator’s Manual
G-2 246-42800-01 - Aug 2013
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.
26. mic.table.addcolumn( "Column 1", Add columns to the table. Note
that the column values are
strings; this allows arbitrary
formatting.
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" ) Add another table.
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" ) Add a summary report.
41. mic.summary.add( "Quantity Adsorbed", Add sections to the summary
report. Note that summary
sections are just specialized
reports with two columns and no
column headers.
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] )
TABLE 1: Example Python Script for User-defined Reports (continued)