[Yt-svn] yt: put a header on print_stats
hg at spacepope.org
hg at spacepope.org
Thu Sep 2 17:49:14 PDT 2010
hg Repository: yt
details: yt/rev/5c78b0b78be5
changeset: 3372:5c78b0b78be5
user: J.S. Oishi <jsoishi at gmail.com>
date:
Thu Sep 02 17:49:06 2010 -0700
description:
put a header on print_stats
diffstat:
yt/data_objects/hierarchy.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 47a713a961f2 -r 5c78b0b78be5 yt/data_objects/hierarchy.py
--- a/yt/data_objects/hierarchy.py Thu Sep 02 17:25:54 2010 -0700
+++ b/yt/data_objects/hierarchy.py Thu Sep 02 17:49:06 2010 -0700
@@ -342,6 +342,9 @@
"""
Prints out (stdout) relevant information about the simulation
"""
+ header = "%3s\t%6s\t%11s" % ("level","# grids", "# cells")
+ print header
+ print "%s" % (len(header.expandtabs())*"-")
for level in xrange(MAXLEVEL):
if (self.level_stats['numgrids'][level]) == 0:
break
More information about the yt-svn
mailing list