[yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Thu Nov 15 19:34:29 PST 2012


2 new commits in yt:


https://bitbucket.org/yt_analysis/yt/changeset/f95c33973f14/
changeset:   f95c33973f14
branch:      yt
user:        jzuhone
date:        2012-11-16 04:32:48
summary:     Fixing the domain dimensions when dimensionality < 3
affected #:  2 files

diff -r ecb651f99c6e02c03676ed2bcc79fa25fab76f2a -r f95c33973f14369d3bdbe6f2d3dbd7b7c6f10228 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 ecb651f99c6e02c03676ed2bcc79fa25fab76f2a -r f95c33973f14369d3bdbe6f2d3dbd7b7c6f10228 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])



https://bitbucket.org/yt_analysis/yt/changeset/aaa2e27c7cdf/
changeset:   aaa2e27c7cdf
branch:      yt
user:        jzuhone
date:        2012-11-16 04:33:53
summary:     Merging
affected #:  1 file

diff -r f95c33973f14369d3bdbe6f2d3dbd7b7c6f10228 -r aaa2e27c7cdf9b5a0a33c5a34ea730ce2ed3d408 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", dest="compare_name",
+        parser.add_option("--answer-compare-name", dest="compare_name",
             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-name", dest="this_name",
+        parser.add_option("--answer-store-name", dest="this_name",
             default=None,
             help="The name we'll call this set of tests")
         parser.add_option("--answer-store", dest="store_results",
@@ -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