madman.constant
Physical constants.
1r"""Physical constants.""" 2 3from scipy.constants import physical_constants 4 5 6class ConstantMeta(type): 7 r"""Metaclass of Constant.""" 8 9 @property 10 def k(self) -> float: 11 r"""Boltzmann's constant [$\mathrm{eV \, K^{-1}}$].""" 12 return physical_constants["Boltzmann constant in eV/K"][0] 13 14 15class Constant(metaclass=ConstantMeta): 16 r"""Physical constants."""
class
ConstantMeta(builtins.type):
7class ConstantMeta(type): 8 r"""Metaclass of Constant.""" 9 10 @property 11 def k(self) -> float: 12 r"""Boltzmann's constant [$\mathrm{eV \, K^{-1}}$].""" 13 return physical_constants["Boltzmann constant in eV/K"][0]
Metaclass of Constant.
k: float
10 @property 11 def k(self) -> float: 12 r"""Boltzmann's constant [$\mathrm{eV \, K^{-1}}$].""" 13 return physical_constants["Boltzmann constant in eV/K"][0]
Boltzmann's constant [$\mathrm{eV \, K^{-1}}$].
Inherited Members
- builtins.type
- type
- mro
class
Constant:
Physical constants.