From 5b3da36203cb3db85d699b14d99150981e899074 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 28 Jan 2019 23:53:54 +0800 Subject: clusters/mergertree: Tweak format of show_mtree() a bit --- fg21sim/extragalactic/clusters/mergertree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim') 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, age) + info += " " % (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 -- cgit v1.2.2