diff options
author | Aaron LI <aly@aaronly.me> | 2017-07-20 09:21:26 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-07-20 09:21:26 +0800 |
commit | d478099bddf5748c643fe013f8363484c3d88e74 (patch) | |
tree | 07402ab373727cf4417eea80355470f942c94177 /fg21sim/extragalactic | |
parent | 33cf456183b9ba5e6bdf858343a3e1a05ccc58d9 (diff) | |
download | fg21sim-d478099bddf5748c643fe013f8363484c3d88e74.tar.bz2 |
mergertree/show_mergertree(): Improve print format
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic')
-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 3ea6165..20fc3ff 100644 --- a/fg21sim/extragalactic/clusters/mergertree.py +++ b/fg21sim/extragalactic/clusters/mergertree.py @@ -80,15 +80,15 @@ def show_mtree(mtree): info = "[z=%.3f/t=%.2f]" % (z, age) if sub is None: # Accretion - info += " %.5g" % mass + info += " %.3e" % mass if parent is not None: dM = parent.data["mass"] - mass - info += " (dM=%.5g)" % dM + info += " (dM=%.2e)" % dM else: # Merger Msub = sub.data["mass"] Rmass = mass / Msub - info += " %.5g <> %.5g (Rm=%.1f)" % (mass, Msub, Rmass) + info += " %.3e <> %.3e (Rm=%.1f)" % (mass, Msub, Rmass) return info i = 0 |