ASAP 2460 Operator’s Manual
Appendix G
246-42800-01 - Aug 2013
G-1
G. "mic" MODULE FOR PYTHON SCRIPTED USER-DEFINED
REPORTS
The mic Python module allows you to access primary and overlay isotherm data and create graphical,
tabular, and summary reports. Graphical reports consist of a single graph with one or more curves on
one or two y-axes. Tabular reports consist of one or more tables consisting of one or more labeled col-
umns of data. Summary reports consist of summary sections, each containing a two-column table of
label and value pairs.
TABLE 1: Example Python Script for User-defined Reports
1. import mic
Import the mic (required) and
numpy (optional) packages.
2. import numpy as np
3. # Isotherms as list of components
4. # Isotherms as list of components
5. iso_rel = mic.isotherm('rel')
Get the isotherm data.
6. iso_abs = mic.isotherm('abs')
7. # or as components.
8. prel, qads, num_ads, warm_fs, cold_fs, mass, desc =
mic.isotherm('rel')
9. pabs, qads, num_ads, warm_fs, cold_fs, mass, desc =
mic.isotherm('abs')
10. # Overlays work the same way but are not guaranteed to be
valid.
11. overlays = []
Get the overlay isotherm data.
12. for i in range( 8 ) :
13. ov = mic.overlay(i, 'rel')
14. overlays.append( ov if ov[0].any() else None )
15. # A graphical report with 3 curves.
16. mic.graph( 'Graphical Report 1', 'Rel. Press', 'Qads' )
Add a graphical report.
17. mic.graph.add( 'Sample isotherm', prel, qads )
Add some curves to the report.
18. mic.graph.add( 'Linear transform', prel, qads * 4.0 + 1.0 )
19. mic.graph.addyy( 'Another transform', prel, np.log( qads *
qads ) )
20. # Another graphical report, this time with 1 curve
21. mic.graph( 'Graphical Report 2' )
Add another graphical report.
22. mic.graph.add( 'Sample isotherm', pabs, qads )
23. # A tabular report with 2 tables.
24. mic.table()
Add a tabular report.
25. mic.table.addtable( "Table 1" )
Add a table to the report.
Summary of Contents for ASAP 2460
Page 4: ......
Page 12: ...Table of Contents ASAP 2460 Operator s Manual viii 246 42800 01 Nov 2013...
Page 30: ...Using the Software ASAP 2460 Operator s Manual 1 18 246 42800 01 Aug 2013...
Page 93: ...ASAP 2460 Operator s Manual Generating Graph Overlays 246 42800 01 Aug 2013 2 63...
Page 94: ...Generating Graph Overlays ASAP 2460 Operator s Manual 2 64 246 42800 01 Aug 2013...
Page 202: ...Service Test ASAP 2460 Operator s Manual 4 36 246 42800 01 Aug 2013...
Page 230: ...Report Examples 2460 Operator s Manual 5 28 246 42800 01 Aug 2013 Isotherm Linear Plot...
Page 231: ...2460 Operator s Manual Report Examples 246 42800 01 Aug 2013 5 29 BET Surface Area Report...
Page 232: ...Report Examples 2460 Operator s Manual 5 30 246 42800 01 Aug 2013 BET Surface Area Plot...
Page 233: ...2460 Operator s Manual Report Examples 246 42800 01 Aug 2013 5 31 t Plot Report...
Page 236: ...Report Examples 2460 Operator s Manual 5 34 246 42800 01 Aug 2013...
Page 242: ...Service Test Mode 2460 Operator s Manual 6 6 246 42800 01 Aug 2013...
Page 270: ...Calibrating the System ASAP 2460 Operator s Manual 7 28 246 42800 01 Aug 2013...
Page 276: ...Ordering Information ASAP 2460 Operator s Manual 8 6 246 42800 01 Aug 2013...
Page 278: ......
Page 280: ......
Page 374: ...Appendix C ASAP 2460 Operator s Manual C 50 246 42800 01 Aug 2013...
Page 398: ...Appendix F ASAP 2460 Operator s Manual F 18 246 42800 01 Aug 2013...
Page 412: ...Index ASAP 2460 Operator s Manual Index 8 246 42800 01 Aug 2013...
Page 413: ...ASAP 2460 Operator s Manual Appendix G Aug 2013 SVP 1 SVP Smart VacPrep Operator Manual...
Page 414: ...Appendix G ASAP 2460 Operator s Manual SVP 2 Aug 2013...
Page 422: ...Contact Us vi Smart VacPrep Operator Manual...
Page 432: ...2 About the Software 2 4 Smart VacPrep Operator Manual...
Page 466: ...8 Error Messages 8 4 Smart VacPrep Operator Manual...