From 3f100476ab746c27b3fded3b9237f78d84e9b9c0 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 4 Oct 2017 13:37:23 +0800 Subject: utils/units.py: Add "K2eV" and "K2keV" --- fg21sim/utils/units.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.2