[Yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Mon May 9 21:37:48 PDT 2011
2 new changesets in yt:
http://bitbucket.org/yt_analysis/yt/changeset/64cbb6e520d3/
changeset: r4245:64cbb6e520d3
branch: yt
user: Andrew Myers
date: 2011-04-21 01:52:16
summary: removes annoying but harmless "cosmological_simulation" warning from orion, which does not use that parameter
affected #: 2 files (1001 bytes)
--- a/yt/frontends/chombo/data_structures.py Wed Apr 20 19:31:04 2011 -0400
+++ b/yt/frontends/chombo/data_structures.py Wed Apr 20 16:52:16 2011 -0700
@@ -52,6 +52,8 @@
StaticOutput
from yt.utilities.definitions import \
mpc_conversion
+from yt.utilities.parallel_tools.parallel_analysis_interface import \
+ parallel_root_only
from .fields import ChomboFieldContainer
@@ -306,3 +308,12 @@
return False
+ @parallel_root_only
+ def print_key_parameters(self):
+ for a in ["current_time", "domain_dimensions", "domain_left_edge",
+ "domain_right_edge"]:
+ if not hasattr(self, a):
+ mylog.error("Missing %s in parameter file definition!", a)
+ continue
+ v = getattr(self, a)
+ mylog.info("Parameters: %-25s = %s", a, v)
--- a/yt/frontends/orion/data_structures.py Wed Apr 20 19:31:04 2011 -0400
+++ b/yt/frontends/orion/data_structures.py Wed Apr 20 16:52:16 2011 -0700
@@ -45,6 +45,8 @@
StaticOutput
from yt.utilities.definitions import \
mpc_conversion
+from yt.utilities.parallel_tools.parallel_analysis_interface import \
+ parallel_root_only
from .definitions import \
orion2enzoDict, \
@@ -621,4 +623,14 @@
self.conversion_factors["Time"] = 1.0
for unit in mpc_conversion.keys():
self.units[unit] = mpc_conversion[unit] / mpc_conversion["cm"]
+
+ @parallel_root_only
+ def print_key_parameters(self):
+ for a in ["current_time", "domain_dimensions", "domain_left_edge",
+ "domain_right_edge"]:
+ if not hasattr(self, a):
+ mylog.error("Missing %s in parameter file definition!", a)
+ continue
+ v = getattr(self, a)
+ mylog.info("Parameters: %-25s = %s", a, v)
http://bitbucket.org/yt_analysis/yt/changeset/465e4b6b614b/
changeset: r4246:465e4b6b614b
branch: yt
user: MatthewTurk
date: 2011-05-10 06:37:39
summary: Merging in changes from atmyers repo
affected #: 2 files (1001 bytes)
--- a/yt/frontends/chombo/data_structures.py Mon May 09 15:14:08 2011 -0700
+++ b/yt/frontends/chombo/data_structures.py Mon May 09 21:37:39 2011 -0700
@@ -52,6 +52,8 @@
StaticOutput
from yt.utilities.definitions import \
mpc_conversion
+from yt.utilities.parallel_tools.parallel_analysis_interface import \
+ parallel_root_only
from .fields import ChomboFieldContainer
@@ -306,3 +308,12 @@
return False
+ @parallel_root_only
+ def print_key_parameters(self):
+ for a in ["current_time", "domain_dimensions", "domain_left_edge",
+ "domain_right_edge"]:
+ if not hasattr(self, a):
+ mylog.error("Missing %s in parameter file definition!", a)
+ continue
+ v = getattr(self, a)
+ mylog.info("Parameters: %-25s = %s", a, v)
--- a/yt/frontends/orion/data_structures.py Mon May 09 15:14:08 2011 -0700
+++ b/yt/frontends/orion/data_structures.py Mon May 09 21:37:39 2011 -0700
@@ -45,6 +45,8 @@
StaticOutput
from yt.utilities.definitions import \
mpc_conversion
+from yt.utilities.parallel_tools.parallel_analysis_interface import \
+ parallel_root_only
from .definitions import \
orion2enzoDict, \
@@ -625,4 +627,14 @@
self.conversion_factors["Time"] = 1.0
for unit in mpc_conversion.keys():
self.units[unit] = mpc_conversion[unit] / mpc_conversion["cm"]
+
+ @parallel_root_only
+ def print_key_parameters(self):
+ for a in ["current_time", "domain_dimensions", "domain_left_edge",
+ "domain_right_edge"]:
+ if not hasattr(self, a):
+ mylog.error("Missing %s in parameter file definition!", a)
+ continue
+ v = getattr(self, a)
+ mylog.info("Parameters: %-25s = %s", a, v)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list