perturbopy.postproc.utils.constants

This is a module for working with constants, including storing values for different units and finding conversion factors.

Functions

conversion_factor

Finds the conversion factor between two units.

energy_conversion_factor

find the conversion factor between two energy units.

find_prefix_and_base_units

Dissects units to a prefix and base units, both with standardized names as specified by units_dict.

hbar

find the value of hbar for specific units.

length_conversion_factor

find the conversion factor between two length units.

prefix_exp

standardize_units_name

Converts any units to their standard name as specified in units_dict.