.. .. _sec-tutorials: .. Tutorials .. --------- .. This section provides examples of how to use the core module. .. Working with ``AssayTable`` classes .. ************************************ .. An assay table can be read into ChemApp for Python to use in calculations. .. Usually this will be done using the friendly module, it can, however, also be .. done with core as well. Here is an example, the example code can be found: .. ``10-core/AssayTable/02-load-assay-table.py`` .. .. literalinclude:: ../../../../../C:\Users\Florian Tang\ChemAppDoc/chemapp/examples/10-core/AssayTable/02-load-assay-table.py .. The assay table looks like this: .. .. code-block:: none .. ======================================================================== .. Assay Table .. ------------------------------------------------------------------------ .. Class: chemapp.core.AssayTable .. Name: ProcessAssays .. Description: .. Assays related to a silicon production process. .. ======================================================================== .. Phase Constituent Quartz Graphite Coal OffGas .. kg/kg kg/kg kg/kg kg/kg .. ------------------------------------------------------------------------ .. GAS CO 0.0000E+00 0.0000E+00 0.0000E+00 5.0000E-01 .. GAS CO2 0.0000E+00 0.0000E+00 0.0000E+00 5.0000E-01 .. C 0.0000E+00 1.0000E+00 9.0000E-01 0.0000E+00 .. SiO2(quartz) 1.0000E+00 0.0000E+00 1.0000E-01 0.0000E+00 .. ------------------------------------------------------------------------ .. Total 1.0000E+00 1.0000E+00 1.0000E+00 1.0000E+00 .. ========================================================================