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

Bitbucket commits-noreply at bitbucket.org
Fri Oct 14 12:40:26 PDT 2011


2 new changesets in yt:

http://bitbucket.org/yt_analysis/yt/changeset/c6d6f5b9a705/
changeset:   c6d6f5b9a705
branch:      yt
user:        MatthewTurk
date:        2011-10-14 21:26:29
summary:     Adding a refine_by 2 check for proj versus overlap_proj
affected #:  1 file (-1 bytes)

--- a/yt/data_objects/hierarchy.py	Thu Oct 13 08:46:35 2011 -0400
+++ b/yt/data_objects/hierarchy.py	Fri Oct 14 15:26:29 2011 -0400
@@ -125,6 +125,11 @@
             cname = cls.__name__
             if cname.endswith("Base"): cname = cname[:-4]
             self._add_object_class(name, cname, cls, dd)
+        if self.refine_by != 2 and hasattr(self, 'proj') and \
+            hasattr(self, 'overlap_proj'):
+            mylog.warning("Refine by something other than two: reverting to"
+                        + " overlap_proj")
+            self.proj = self.overlap_proj
         self.object_types.sort()
 
     # Now all the object related stuff


http://bitbucket.org/yt_analysis/yt/changeset/a5b21abaa2f8/
changeset:   a5b21abaa2f8
branch:      yt
user:        MatthewTurk
date:        2011-10-14 21:40:12
summary:     Whoops, refine_by is on the pf not the hierarchy.  This works now!
affected #:  1 file (-1 bytes)

--- a/yt/data_objects/hierarchy.py	Fri Oct 14 15:26:29 2011 -0400
+++ b/yt/data_objects/hierarchy.py	Fri Oct 14 15:40:12 2011 -0400
@@ -125,7 +125,7 @@
             cname = cls.__name__
             if cname.endswith("Base"): cname = cname[:-4]
             self._add_object_class(name, cname, cls, dd)
-        if self.refine_by != 2 and hasattr(self, 'proj') and \
+        if self.pf.refine_by != 2 and hasattr(self, 'proj') and \
             hasattr(self, 'overlap_proj'):
             mylog.warning("Refine by something other than two: reverting to"
                         + " overlap_proj")

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