ChemicalIndexer#

class ChemicalIndexer(phase=LockedPhase(None), units=None, chemicals=None, **ID_data)[source]#

Create a ChemicalIndexer that can index a single-phase, 1d-array given chemical IDs.

Parameters:
  • phase ([str or PhaseContainer] {'s', 'l', 'g', 'S', 'L'}) – Phase of data.

  • units (str) – Units of measure of input data.

  • chemicals (Chemicals) – Required to define the chemicals that are present.

  • **ID_data (float) – ID-value pairs

Notes

A ChemicalIndexer does not have any units defined. To use units of measure, use the ChemicalMolarIndexer, ChemicalMassIndexer, or ChemicalVolumetricIndexer.

get_phase_and_composition()[source]#

Return phase and composition.

show(N=None)#

Print all specifications.

Parameters:

N (int, optional) – Number of compounds to display.