These are the same. This can be refactored in quite a few files. I prefer electron_mass_eV as a name and the way it is defined.
rest_energy = torch.tensor(
constants.electron_mass
* constants.speed_of_light**2
/ constants.elementary_charge # electron mass
)
electron_mass_eV = torch.tensor(
physical_constants["electron mass energy equivalent in MeV"][0] * 1e6
)
These are the same. This can be refactored in quite a few files. I prefer
electron_mass_eV
as a name and the way it is defined.