aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/formation.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-31 23:47:52 +0800
committerAaron LI <aly@aaronly.me>2017-07-31 23:47:52 +0800
commitc75dfd265e82b62af330f29be492a35c831238cc (patch)
treed326ddb6844fcd4de7e571faab079f06497a62c0 /fg21sim/extragalactic/clusters/formation.py
parent68dac5c2e1972c3868503b8ce6208b455240c61c (diff)
downloadfg21sim-c75dfd265e82b62af330f29be492a35c831238cc.tar.bz2
clusters: Fix several small issues on wrong variable names
Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/formation.py')
-rw-r--r--fg21sim/extragalactic/clusters/formation.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/formation.py b/fg21sim/extragalactic/clusters/formation.py
index dc41e00..f92c868 100644
--- a/fg21sim/extragalactic/clusters/formation.py
+++ b/fg21sim/extragalactic/clusters/formation.py
@@ -186,8 +186,9 @@ class ClusterFormation:
References: Ref.[randall2002],Sec.(3.1)
"""
logger.debug("Simulating cluster formation: " +
- "M0={:.3g}[Msun] from z={:.3f} to z={zmax} ...".format(
- self.M0, self.z0, zmax=self.zmax))
+ "M0=%.3e[Msun] " % self.M0 +
+ "from z={:.3f} back to z={zmax} ...".format(
+ self.z0, zmax=self.zmax))
self.main_only = main_only
if main_only:
logger.debug("Only trace the formation of the *main* cluster ...")
@@ -195,7 +196,7 @@ class ClusterFormation:
else:
logger.debug("Trace formations of both main and sub cluster ...")
self.mtree = self._trace_formation(self.M0, _z=self.z0)
- logger.debug("Simulated cluster formation with merger tree")
+ logger.debug("Simulated cluster formation with merger tree.")
return self.mtree
@property