Acquire Metal Composition Data for Chemical Adsorption
The call to obtain information about active metals in a chemical adsorption sample is mic.metal_composition. Specifically, this call provides access to the data shown in the table of the Active Metals window. With no arguments specified, the call returns a list of all the active metals in the sample. When called with a metal specified, the method returns an associative array (python dictionary) of the metal's properties. With both the metal and property specified, the call returns the value for the specified metal property. The following example script illustrates these three usage patterns.
import mic import pprint as pp mnames = mic.metal_composition() mic.summary( "Metal Composition:" + pp.pformat( mnames ) ) mprops = sorted( mic.metal_composition( mnames[0] ).items() ) mkeys = [] mvals = [] for k, v in mprops : if ( 'cross sectional area' in k ) : mkeys.append( k + ' (nm^2)' ) elif ( 'atomic weight' in k ) : mkeys.append( k + ' (amu)' ) elif ( 'density' in k ) : mkeys.append( k + ' (g/cm^3)' ) else : mkeys.append( k ) mvals.append("%8.3f" % v ) mic.summary.add( "Properties for " + mnames[0], mkeys, mvals) mweights = [] for mname in mnames : mweights.append( "%8.3f" % mic.metal_composition(mname, 'atomic weight') ) mic.summary.add("Active Metals and Atomic Weight (amu)", mnames, mweights)
Micromeritics Learning Center Contact Us
Copyright © 2014 - 2018. Micromeritics Instrument Corporation. All rights reserved.