From 3b2fc9a3dfb14bcf2b2d7692eacd35129a37466e Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 20 Jul 2017 15:41:52 +0800 Subject: 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 --- fg21sim/extragalactic/clusters/formation.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'fg21sim/extragalactic') 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 -- cgit v1.2.2