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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 22 05:20:15 PDT 2013


2 new commits in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/e3e35f832c2c/
Changeset:   e3e35f832c2c
Branch:      yt-3.0
User:        juxtaposicion
Date:        2013-08-22 08:23:21
Summary:     fix for Colin's error
Affected #:  1 file

diff -r 683de674b308a340c7bc89669e44e8202c36e289 -r e3e35f832c2c0deafd7d2db689f4a311043778fd yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -123,9 +123,16 @@
         self.overlap_cells = 0
 
         for i in range(3) :
-            self.domain_width[i] = dobj.pf.domain_right_edge[i] - \
-                                   dobj.pf.domain_left_edge[i]
-            self.periodicity[i] = dobj.pf.periodicity[i]
+            pf = getattr(dobj, 'pf', None)
+            if pf is None:
+                for i in range(3):
+                    self.domain_width[i] = 1.0
+                    self.periodicity[i] = False
+            else:
+                for i in range(3):
+                    self.domain_width[i] = pf.domain_right_edge[i] - \
+                                           pf.domain_left_edge[i]
+                    self.periodicity[i] = pf.periodicity[i]
 
     @cython.boundscheck(False)
     @cython.wraparound(False)


https://bitbucket.org/yt_analysis/yt-3.0/commits/2c8e6279eb37/
Changeset:   2c8e6279eb37
Branch:      yt-3.0
User:        MatthewTurk
Date:        2013-08-22 14:17:17
Summary:     Critical bug fix for RAMSES.
Affected #:  1 file

diff -r 08a8f2e512f16552c3cb09f985ec49d28abb998f -r 2c8e6279eb37d4966d28f951e3831e1aefea2baa yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -123,9 +123,16 @@
         self.overlap_cells = 0
 
         for i in range(3) :
-            self.domain_width[i] = dobj.pf.domain_right_edge[i] - \
-                                   dobj.pf.domain_left_edge[i]
-            self.periodicity[i] = dobj.pf.periodicity[i]
+            pf = getattr(dobj, 'pf', None)
+            if pf is None:
+                for i in range(3):
+                    self.domain_width[i] = 1.0
+                    self.periodicity[i] = False
+            else:
+                for i in range(3):
+                    self.domain_width[i] = pf.domain_right_edge[i] - \
+                                           pf.domain_left_edge[i]
+                    self.periodicity[i] = pf.periodicity[i]
 
     @cython.boundscheck(False)
     @cython.wraparound(False)

Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/

--

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