units

Unit conventions and conversion constants used by kMCpy.

kMCpy keeps the public API numeric and lightweight, but the numeric values have fixed units. This module makes those conventions explicit so calculations, output metadata, and documentation all refer to the same source.

kmcpy.units.unit_for(quantity, default=None)[source]

Return the configured unit label for a named quantity.

Return type:

str | None