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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Mar 18 10:20:57 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/e892e4ee0747/
Changeset:   e892e4ee0747
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-17 23:10:53
Summary:     Fixing particles overflowing over the edge of a covering grid.
Affected #:  1 file

diff -r a6c02d0eb17fabb3b030140b93493c5abbd8507b -r e892e4ee07479a262bc9b08b50333294901da39f yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -478,6 +478,10 @@
             self.right_edge + self.base_dds)
         self._data_source.min_level = 0
         self._data_source.max_level = self.level
+        self._pdata_source = self.pf.region(self.center,
+            self.left_edge, self.right_edge)
+        self._pdata_source.min_level = 0
+        self._pdata_source.max_level = self.level
 
     def get_data(self, fields = None):
         if fields is None: return
@@ -509,7 +513,7 @@
 
     def _fill_particles(self, part):
         for p in part:
-            self[p] = self._data_source[p]
+            self[p] = self._pdata_source[p]
 
     def _fill_fields(self, fields):
         output_fields = [np.zeros(self.ActiveDimensions, dtype="float64")


https://bitbucket.org/yt_analysis/yt/commits/4f7dfffeb414/
Changeset:   4f7dfffeb414
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-03-18 18:20:48
Summary:     Merged in MatthewTurk/yt/yt-3.0 (pull request #726)

Fixing particles overflowing over the edge of a covering grid.
Affected #:  1 file

diff -r 4bc951ee2db7e00d453de6a3bdf95fdd03732836 -r 4f7dfffeb4146833a1c4b6a1fcb2fb9719fadac2 yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -478,6 +478,10 @@
             self.right_edge + self.base_dds)
         self._data_source.min_level = 0
         self._data_source.max_level = self.level
+        self._pdata_source = self.pf.region(self.center,
+            self.left_edge, self.right_edge)
+        self._pdata_source.min_level = 0
+        self._pdata_source.max_level = self.level
 
     def get_data(self, fields = None):
         if fields is None: return
@@ -509,7 +513,7 @@
 
     def _fill_particles(self, part):
         for p in part:
-            self[p] = self._data_source[p]
+            self[p] = self._pdata_source[p]
 
     def _fill_fields(self, fields):
         output_fields = [np.zeros(self.ActiveDimensions, dtype="float64")

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