[yt-svn] commit/yt: ngoldbaum: Merged in MatthewTurk/yt (pull request #1756)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 21 11:12:55 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/b26a091527dd/
Changeset:   b26a091527dd
Branch:      yt
User:        ngoldbaum
Date:        2015-09-21 18:12:44+00:00
Summary:     Merged in MatthewTurk/yt (pull request #1756)

Fallback for parent dds not existing
Affected #:  1 file

diff -r dd30c95c00283bc925b9fe2113a4a5eae1c264a9 -r b26a091527dd48d16106129ef576472c9926bd76 yt/data_objects/grid_patch.py
--- a/yt/data_objects/grid_patch.py
+++ b/yt/data_objects/grid_patch.py
@@ -136,6 +136,8 @@
         # that dx=dy=dz, at least here.  We probably do elsewhere.
         id = self.id - self._id_offset
         if self.Parent is not None:
+            if not hasattr(self.Parent, 'dds'):
+                self.Parent._setup_dx()
             self.dds = self.Parent.dds.ndarray_view() / self.ds.refine_by
         else:
             LE, RE = self.index.grid_left_edge[id,:], \

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