A Advanced Reports - Python Module
T
R
ABULAR
EPORT
If more than one column is required, the call mic.table is employed. This script produces a tabular
report consisting of two tables.
This script uses the Python package "numpy" and c-style formatting of the numerical val-
ues.
import mic
import numpy as np
mic.table( "My Tables" )
mic.table.addtable( "My Set A" )
mic.table.addcolumn( "X", ["1.0", "2.0", "3.0"] )
mic.table.addcolumn( "Y", ["0.5", "1.0", "1.5"] )
x1 = 0.2
x2 = 0.5
x3 = 3.14159/2
mic.table.addtable( "My Set B" )
mic.table.addcolumn( "X", ['{:8.3f}'.format(x1),
mic.table.addcolumn( "sin(X)", ['{:8.3f}'.format(np.sin(x1)),
mic.table.addcolumn( "cos(X)", ['{:8.3f}'.format(np.cos(x1)),
The result is:
A - 10
'{:8.3f}'.format(x2),
'{:8.3f}'.format(x3)] )
'{:8.3f}'.format(np.sin(x2)),
'{:8.3f}'.format(np.sin(x3))] )
'{:8.3f}'.format(np.cos(x2)),
'{:8.3f}'.format(np.cos(x3))] )
AccuPyc II 1345 Operator Manual
134-42851-01 (Rev A) — Jan 2021
Need help?
Do you have a question about the ACCUPYC II 1345 and is the answer not in the manual?
Questions and answers