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

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


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/2366a9b2a91a/
Changeset:   2366a9b2a91a
Branch:      yt
User:        MatthewTurk
Date:        2015-09-16 19:19:11+00:00
Summary:     If the parent has not had its dx set up yet, set it up here.
Affected #:  1 file

diff -r f818f29712491ce9f597decaea69297a06603393 -r 2366a9b2a91a4593c9aba153768eee8a3ecd9d06 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,:], \


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