Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions py/orbit/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

from .phaseOperations import phaseNearTargetPhase, phaseNearTargetPhaseDeg
from .consts import speed_of_light
from .consts import mass_proton
from .consts import mass_electron
from .consts import charge_electron

__all__ = []
__all__.append("multiDimDoubleArray")
Expand All @@ -29,3 +32,6 @@
__all__.append("phaseNearTargetPhase")
__all__.append("phaseNearTargetPhaseDeg")
__all__.append("speed_of_light")
__all__.append("mass_proton")
__all__.append("mass_electron")
__all__.append("charge_electron")
2 changes: 1 addition & 1 deletion py/orbit/utils/consts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
speed_of_light = 2.99792458e8 # m/s
pi = 3.14159265
mass_proton = 0.938272029 # GeV/c^2
mass_electron = 0.000511 # GeV/c^2
mass_electron = 0.000510998950 # GeV/c^2
mass_electron_mks = 9.10938291e-31 # kg
charge_electron = 1.602176e-19 # Coulomb
Loading