[yt-svn] commit/yt: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Thu Nov 15 19:35:24 PST 2012
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/changeset/f58eae8df605/
changeset: f58eae8df605
branch: yt
user: chummels
date: 2012-11-16 04:35:03
summary: Updating the metavars on the help messages for the testing suite to reflect the variable types expected at the command line call.
affected #: 1 file
diff -r da3fcd605bcc411ff32fa2f9fc22ef2bc4c2658b -r f58eae8df6053e0e3c1aea1498c7177d5631ce9f yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -53,12 +53,12 @@
def options(self, parser, env=os.environ):
super(AnswerTesting, self).options(parser, env=env)
- parser.add_option("--answer-compare-name", dest="compare_name",
+ parser.add_option("--answer-compare-name", dest="compare_name", metavar='str',
default=_latest, help="The name against which we will compare")
parser.add_option("--answer-big-data", dest="big_data",
default=False, help="Should we run against big data, too?",
action="store_true")
- parser.add_option("--answer-store-name", dest="this_name",
+ parser.add_option("--answer-store-name", dest="this_name", metavar='str',
default=None,
help="The name we'll call this set of tests")
parser.add_option("--answer-store", dest="store_results",
https://bitbucket.org/yt_analysis/yt/changeset/b22a96f4172f/
changeset: b22a96f4172f
branch: yt
user: chummels
date: 2012-11-16 04:35:16
summary: Merging.
affected #: 3 files
diff -r f58eae8df6053e0e3c1aea1498c7177d5631ce9f -r b22a96f4172f87443ef19bc060b2725c8478cf4d yt/frontends/athena/data_structures.py
--- a/yt/frontends/athena/data_structures.py
+++ b/yt/frontends/athena/data_structures.py
@@ -331,6 +331,8 @@
dimensionality = 2
if grid['dimensions'][1] == 1 :
dimensionality = 1
+ if dimensionality <= 2 : self.domain_dimensions[2] = 1.
+ if dimensionality == 1 : self.domain_dimensions[1] = 1.
self.dimensionality = dimensionality
self.current_time = grid["time"]
self.unique_identifier = self._handle.__hash__()
diff -r f58eae8df6053e0e3c1aea1498c7177d5631ce9f -r b22a96f4172f87443ef19bc060b2725c8478cf4d yt/frontends/flash/data_structures.py
--- a/yt/frontends/flash/data_structures.py
+++ b/yt/frontends/flash/data_structures.py
@@ -418,7 +418,11 @@
nblockx = self.parameters["iprocs"]
nblocky = self.parameters["jprocs"]
nblockz = self.parameters["kprocs"]
-
+
+ # In case the user wasn't careful
+ if dimensionality <= 2 : nblockz = 1
+ if dimensionality == 1 : nblocky = 1
+
self.dimensionality = dimensionality
self.domain_dimensions = \
np.array([nblockx*nxb,nblocky*nyb,nblockz*nzb])
diff -r f58eae8df6053e0e3c1aea1498c7177d5631ce9f -r b22a96f4172f87443ef19bc060b2725c8478cf4d yt/utilities/answer_testing/framework.py
--- a/yt/utilities/answer_testing/framework.py
+++ b/yt/utilities/answer_testing/framework.py
@@ -93,7 +93,9 @@
options.compare_name = None
elif options.compare_name == "latest":
options.compare_name = _latest
-
+ if options.store_results:
+ options.compare_name = None
+
# Local/Cloud storage
if options.store_local_results:
storage_class = AnswerTestLocalStorage
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