chemparseplot.units#
Unit registry and quantity helpers via pint.
Added in version 0.0.2.
Pint is imported on first access so a bare package import stays light. Energy
presentation units (eV, kcal/mol, kJ/mol) are defined on a small
chemical-energy dimension so conversions used by plot/parse helpers go through
Quantity.to instead of ad-hoc floats.
Module Contents#
Functions#
Map aliases to a canonical energy presentation unit name. |
|
Wrap values as a pint |
|
Alias of :func: |
|
Convert energy magnitudes between presentation units via pint. |
Data#
API#
- chemparseplot.units.__all__#
[‘ENERGY_UNITS’, ‘Q_’, ‘as_energy_quantity’, ‘convert_energy_magnitude’, ‘energy_quantity’, ‘normali…
- chemparseplot.units.ENERGY_UNITS#
(‘eV’, ‘kcal/mol’, ‘kJ/mol’)
- chemparseplot.units._ENERGY_PINT_NAME#
None
- chemparseplot.units._ENERGY_TO_EV#
None
- chemparseplot.units._ureg#
None
- chemparseplot.units._Q#
None
- chemparseplot.units.normalize_energy_unit(unit: str) str[source]#
Map aliases to a canonical energy presentation unit name.
- chemparseplot.units.as_energy_quantity(values: Any, unit: str = 'eV')[source]#
Wrap values as a pint
Quantityin a chemical-energy presentation unit.