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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Apr 18 10:42:30 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/4f3296e59a32/
Changeset:   4f3296e59a32
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-04-18 19:42:23
Summary:     Merged in MatthewTurk/yt/yt-3.0 (pull request #838)

Check for periodicity much more carefully in covering_grid.
Affected #:  1 file

diff -r 802fba6202d67171e973a03984377dd3b944cf83 -r 4f3296e59a3259bb77bccea21fd718b88f5fef27 yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -478,9 +478,14 @@
         return tuple(self.ActiveDimensions.tolist())
 
     def _setup_data_source(self):
-        self._data_source = self.pf.region(self.center,
-            self.left_edge - self.base_dds,
-            self.right_edge + self.base_dds)
+        LE = self.left_edge - self.base_dds
+        RE = self.right_edge + self.base_dds
+        if not all(self.pf.periodicity):
+            for i in range(3):
+                if self.pf.periodicity[i]: continue
+                LE[i] = max(LE[i], self.pf.domain_left_edge[i])
+                RE[i] = min(RE[i], self.pf.domain_right_edge[i])
+        self._data_source = self.pf.region(self.center, LE, RE)
         self._data_source.min_level = 0
         self._data_source.max_level = self.level
         self._pdata_source = self.pf.region(self.center,

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