Files
beta_shape_pnpi/beta_spectrum/units.py
T
unzhakov a5e1962fe2 Initial commit
Base modular structure (phase space, Fermi function)
Initial .gitignore
2026-04-02 15:38:37 +03:00

13 lines
242 B
Python

# units.py
import numpy as np
ME_KEV = 510.99895000 # keV electron mass
def W_to_T(W: float | np.ndarray) -> np.ndarray:
return (W - 1.0) * ME_KEV
def T_to_W(T_keV: float | np.ndarray) -> np.ndarray:
return T_keV / ME_KEV + 1.0