[Yt-svn] yt: define self.parameters["Time"] in MaestroStaticOutput so the...

hg at spacepope.org hg at spacepope.org
Wed Jan 19 18:40:46 PST 2011


hg Repository: yt
details:   yt/rev/5b93f14b1c69
changeset: 3678:5b93f14b1c69
user:      Chris Malone <chris.m.malone at gmail.com>
date:
Wed Jan 19 15:11:29 2011 -0500
description:
define self.parameters["Time"] in MaestroStaticOutput so the command line tool `yt status` is happy

diffstat:

 yt/frontends/maestro/data_structures.py |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 47706724d95e -r 5b93f14b1c69 yt/frontends/maestro/data_structures.py
--- a/yt/frontends/maestro/data_structures.py	Tue Jan 18 19:56:45 2011 -0500
+++ b/yt/frontends/maestro/data_structures.py	Wed Jan 19 15:11:29 2011 -0500
@@ -451,6 +451,10 @@
 
         StaticOutput.__init__(self, plotname.rstrip("/"),
                               data_style='maestro')
+
+        # this is the unit of time; NOT the current time
+        self.parameters["Time"] = 1 # second
+
         self.field_info = self._fieldinfo_class()
         self._parse_header_file()
 



More information about the yt-svn mailing list