[Yt-svn] yt: FLASHFields.py:
hg at spacepope.org
hg at spacepope.org
Wed Aug 18 16:27:33 PDT 2010
hg Repository: yt
details: yt/rev/da36cd9c4a54
changeset: 1954:da36cd9c4a54
user: John ZuHone <jzuhone at gmail.com>
date:
Wed Aug 18 19:27:09 2010 -0400
description:
FLASHFields.py:
"gpol" was getting marked as "gpot". Fixed.
The log shouldn't be taken by default of the gravitational potential/accelerations.
OutputTypes.py:
Getting "InitialTime" from the simulation time from FLASH files.
diffstat:
yt/lagos/FLASHFields.py | 6 +++---
yt/lagos/OutputTypes.py | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 0da17356ad02 -r da36cd9c4a54 yt/lagos/FLASHFields.py
--- a/yt/lagos/FLASHFields.py Wed Aug 18 15:13:03 2010 -0700
+++ b/yt/lagos/FLASHFields.py Wed Aug 18 19:27:09 2010 -0400
@@ -76,15 +76,15 @@
validators = [ValidateDataField("game")],
units = r"\rm{ratio\/of\/specific\/heats}")
-add_field("gpot", function=lambda a,b: None, take_log=True,
+add_field("gpot", function=lambda a,b: None, take_log=False,
validators = [ValidateDataField("gpot")],
units = r"\rm{ergs\//\/g}")
-add_field("gpot", function=lambda a,b: None, take_log=True,
+add_field("gpol", function=lambda a,b: None, take_log=False,
validators = [ValidateDataField("gpol")],
units = r"\rm{ergs\//\/g}")
-add_field("grac", function=lambda a,b: None, take_log=True,
+add_field("grac", function=lambda a,b: None, take_log=False,
validators = [ValidateDataField("grac")],
units = r"\rm{cm\/s^{-2}}")
diff -r 0da17356ad02 -r da36cd9c4a54 yt/lagos/OutputTypes.py
--- a/yt/lagos/OutputTypes.py Wed Aug 18 15:13:03 2010 -0700
+++ b/yt/lagos/OutputTypes.py Wed Aug 18 19:27:09 2010 -0400
@@ -906,6 +906,8 @@
[self._find_parameter("real", "%smin" % ax) for ax in 'xyz'])
self.parameters["DomainRightEdge"] = na.array(
[self._find_parameter("real", "%smax" % ax) for ax in 'xyz'])
+ self.parameters["InitialTime"] = \
+ float(self._find_parameter("real", "time", scalar=True)
self._handle.close()
@classmethod
More information about the yt-svn
mailing list