aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils/units.py
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils/units.py')
-rw-r--r--fg21sim/utils/units.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fg21sim/utils/units.py b/fg21sim/utils/units.py
index e7deb17..401b1e8 100644
--- a/fg21sim/utils/units.py
+++ b/fg21sim/utils/units.py
@@ -58,6 +58,8 @@ class UnitConversions:
# Energy
keV2erg = au.keV.to(au.erg)
erg2keV = 1.0 / keV2erg
+ J2erg = au.J.to(au.erg)
+ erg2J = 1.0 / J2erg
# Angle
rad2deg = au.rad.to(au.deg)
deg2rad = 1.0 / rad2deg