aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/helper.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-23 11:33:00 +0800
committerAaron LI <aly@aaronly.me>2017-07-23 11:33:00 +0800
commit4443b6e6d39f586d881b354eead261e7545757b3 (patch)
treedbe80bc20c3def3e8d15c9157cd4dc4da32f0cd4 /fg21sim/extragalactic/clusters/helper.py
parenta5cf20da1b7e2bc61321d948dae6e5016982d0fe (diff)
downloadfg21sim-4443b6e6d39f586d881b354eead261e7545757b3.tar.bz2
clusters/helper.py: Fix a bug in "mass_to_kT()"
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/helper.py')
-rw-r--r--fg21sim/extragalactic/clusters/helper.py4
1 files changed, 2 insertions, 2 deletions
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)