aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-20 15:41:52 +0800
committerAaron LI <aly@aaronly.me>2017-07-20 15:41:52 +0800
commit3b2fc9a3dfb14bcf2b2d7692eacd35129a37466e (patch)
treeedf8b1cef5dee019813b32e0b84f8bacee5c0bc0 /fg21sim/extragalactic
parentd478099bddf5748c643fe013f8363484c3d88e74 (diff)
downloadfg21sim-3b2fc9a3dfb14bcf2b2d7692eacd35129a37466e.tar.bz2
clusters/formation.py: show verbose info only in DEBUG
Since the ``ClusterFormation`` is repeatedly invoked in ``GalaxyClusters``, so make the verbose information printed only at DEBUG level. Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r--fg21sim/extragalactic/clusters/formation.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/fg21sim/extragalactic/clusters/formation.py b/fg21sim/extragalactic/clusters/formation.py
index a6b215c..827c089 100644
--- a/fg21sim/extragalactic/clusters/formation.py
+++ b/fg21sim/extragalactic/clusters/formation.py
@@ -65,6 +65,9 @@ class ClusterFormation:
----------
mtree : `~MergerTree`
Merging history of this cluster.
+ last_major_merger : dict, or None
+ An dictionary containing the properties of the found last/recent
+ major merger event, or None if not found.
"""
def __init__(self, M0, z0, zmax=3.0, ratio_major=3.0,
cosmo=Cosmology(), merger_mass_min=1e12):
@@ -189,17 +192,17 @@ class ClusterFormation:
References: Ref.[1],Sec.(3.1)
"""
- logger.info("Simulating cluster formation: " +
- "M0={:.3g}[Msun] from z={:.2f} to z={zmax} ...".format(
- self.M0, self.z0, zmax=self.zmax))
+ logger.debug("Simulating cluster formation: " +
+ "M0={:.3g}[Msun] from z={:.3f} to z={zmax} ...".format(
+ self.M0, self.z0, zmax=self.zmax))
self.main_only = main_only
if main_only:
- logger.info("Only trace the formation of the *main* cluster ...")
+ logger.debug("Only trace the formation of the *main* cluster ...")
self.mtree = self._trace_main()
else:
- logger.info("Trace formations of both main and sub cluster ...")
+ logger.debug("Trace formations of both main and sub cluster ...")
self.mtree = self._trace_formation(self.M0, _z=self.z0)
- logger.info("Simulated cluster formation with merger tree")
+ logger.debug("Simulated cluster formation with merger tree")
return self.mtree
@property