diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-26 17:49:06 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-26 17:49:06 +0800 |
commit | e0787146c37028a8fdbe48e03fe1c93c99cefdde (patch) | |
tree | b8610b3ede8cd8465c550094183773861fba0c42 /fg21sim | |
parent | 3c362e744b0acde57a8f99de8f671d7b258b8de9 (diff) | |
download | fg21sim-e0787146c37028a8fdbe48e03fe1c93c99cefdde.tar.bz2 |
clusters/main: Replace "age" with "t" (time)
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index e169ab9..20069bb 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -219,7 +219,7 @@ class GalaxyClusters: merger_num : number of merger events within the traced period merger_mass1, merger_mass2 : [Msun] masses of the main and sub clusters of each merger. - merger_z, merger_age : redshifts and cosmic ages [Gyr] + merger_z, merger_t : redshifts and cosmic times [Gyr] of each merger event, in backward time ordering. """ logger.info("Simulating merger histories for each cluster ...") @@ -243,7 +243,7 @@ class GalaxyClusters: ("merger_mass1", [ev["M_main"]/fdm for ev in mergers]), ("merger_mass2", [ev["M_sub"]/fdm for ev in mergers]), ("merger_z", [ev["z"] for ev in mergers]), - ("merger_age", [ev["age"] for ev in mergers]), + ("merger_t", [ev["age"] for ev in mergers]), ]) else: cdict.update([ @@ -251,7 +251,7 @@ class GalaxyClusters: ("merger_mass1", []), ("merger_mass2", []), ("merger_z", []), - ("merger_age", []), + ("merger_t", []), ]) self.comments += [ @@ -259,7 +259,7 @@ class GalaxyClusters: "merger_mass1 - [Msun] main cluster mass of each merger", "merger_mass2 - [Msun] sub cluster mass of each merger", "merger_z - redshift of each merger", - "merger_age - [Gyr] cosmic age at each merger", + "merger_t - [Gyr] cosmic time at each merger", ] logger.info("%d (%.1f%%) clusters experienced recent mergers." % (num_hasmerger, 100*num_hasmerger/num)) @@ -448,8 +448,8 @@ class GalaxyClusters: list(cdict["merger_mass2"]) + [None]*(nmax-num)), ("merger_z", list(cdict["merger_z"]) + [None]*(nmax-num)), - ("merger_age", - list(cdict["merger_age"]) + [None]*(nmax-num)), + ("merger_t", + list(cdict["merger_t"]) + [None]*(nmax-num)), ]) keys = list(self.catalog[0].keys()) |