diff options
author | Aaron LI <aly@aaronly.me> | 2019-01-28 23:53:54 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-01-28 23:53:54 +0800 |
commit | 5b3da36203cb3db85d699b14d99150981e899074 (patch) | |
tree | ad0eee78af138ab40016878121fb092f95bde960 /fg21sim/extragalactic/clusters | |
parent | f869e6ed4d62e58e3106f794061ecf7dd4e24f4c (diff) | |
download | fg21sim-5b3da36203cb3db85d699b14d99150981e899074.tar.bz2 |
clusters/mergertree: Tweak format of show_mtree() a bit
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r-- | fg21sim/extragalactic/clusters/mergertree.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/mergertree.py b/fg21sim/extragalactic/clusters/mergertree.py index abda0d4..609dbee 100644 --- a/fg21sim/extragalactic/clusters/mergertree.py +++ b/fg21sim/extragalactic/clusters/mergertree.py @@ -114,17 +114,17 @@ def show_mtree(mtree): info = "%2d: " % i z = main["z"] age = main["age"] - info += "<z=%.3f/t=%05.2f> " % (z, age) + info += "<z=%.3f; t=%5.2f> " % (z, age) mass = main["mass"] if sub: # merger event Msub = sub["mass"] Rmass = mass / Msub - info += "[%.3e @@@ %.3e] (Rm=%04.1f)" % (mass, Msub, Rmass) + info += "[%.3e @@@ %.3e] (Rm=%5.1f)" % (mass, Msub, Rmass) elif parent: # accretion event dM = parent["mass"] - mass - info += " %.3e + %.3e " % (mass, dM) + info += " %.3e + %.3e " % (mass, dM) else: # root cluster info += " %.3e" % mass |