From 4443b6e6d39f586d881b354eead261e7545757b3 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 23 Jul 2017 11:33:00 +0800 Subject: clusters/helper.py: Fix a bug in "mass_to_kT()" Signed-off-by: Aaron LI --- fg21sim/extragalactic/clusters/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fg21sim/extragalactic') diff --git a/fg21sim/extragalactic/clusters/helper.py b/fg21sim/extragalactic/clusters/helper.py index 300ee08..618c237 100644 --- a/fg21sim/extragalactic/clusters/helper.py +++ b/fg21sim/extragalactic/clusters/helper.py @@ -125,8 +125,8 @@ def mass_to_kT(mass, z=0.0): The ICM mean temperature. Unit: [keV] """ - # A = 5.34 + np.random.normal(scale=0.22) - A = 5.34 + # A = (5.34 + np.random.normal(scale=0.22)) * 1e14 # [Msun] + A = 5.34 * 1e14 # [Msun] # alpha = 1.72 + np.random.normal(scale=0.10) alpha = 1.72 Ez = COSMO.E(z) -- cgit v1.2.2