aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-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 0389715..b83bd02 100644
--- a/fg21sim/utils/units.py
+++ b/fg21sim/utils/units.py
@@ -69,7 +69,9 @@ class UnitConversions:
arcsec2arcmin = au.arcsec.to(au.arcmin)
# Temperature
eV2K = au.eV.to(ac.k_B*au.K)
+ K2eV = 1 / eV2K
keV2K = au.keV.to(ac.k_B*au.K)
+ K2keV = 1 / keV2K
class Constants: