aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/main.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-01 16:32:13 +0800
committerAaron LI <aly@aaronly.me>2017-08-01 16:32:13 +0800
commit55dc0e0b80ce332982ff86a5f5c41beb6086056d (patch)
tree87247fb2d867d8159bd8930f2d854ce0ced4edd4 /fg21sim/extragalactic/clusters/main.py
parent6f59d9d78b5cc65d825606e4dcb105283a4dc47c (diff)
downloadfg21sim-55dc0e0b80ce332982ff86a5f5c41beb6086056d.tar.bz2
Improve logging messages
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic/clusters/main.py')
-rw-r--r--fg21sim/extragalactic/clusters/main.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 43c4c09..849ac57 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -241,6 +241,10 @@ class GalaxyClusters:
i += 1
if i % 50 == 0:
logger.info("[%d/%d] %.1f%% ..." % (i, num, 100*i/num))
+ logger.info("[%d/%d] " % (i, num) +
+ "M1[%.2e] & M2[%.2e] @ z[%.3f] -> M[%.2e] @ z[%.3f]" %
+ (row.rmm_mass1, row.rmm_mass2, row.rmm_z,
+ row.mass, row.z))
halo = RadioHalo(M_obs=row.mass, z_obs=row.z,
M_main=row.rmm_mass1, M_sub=row.rmm_mass2,
z_merger=row.rmm_z, configs=self.configs)
@@ -302,6 +306,7 @@ class GalaxyClusters:
comment=self.catalog_comment,
clobber=self.clobber)
# Dump the simulated clusters data
+ logger.info("Dumping the simulated halos data ...")
if self.halos_dumpfile is None:
logger.warning("Missing dump outfile; skip dump cluster data!")
else: