[yt-svn] commit/yt: MatthewTurk: Turning off _is_fully_enclosed for spheres
Bitbucket
commits-noreply at bitbucket.org
Tue Oct 23 16:13:35 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/329544ece9b1/
changeset: 329544ece9b1
branch: yt
user: MatthewTurk
date: 2012-10-24 01:13:24
summary: Turning off _is_fully_enclosed for spheres
affected #: 1 file
diff -r dd8b7e82f5ee0749e131a99665f68d9980024b63 -r 329544ece9b19b441f2491e7dad059c848e9e318 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -3502,10 +3502,7 @@
for gi, g in enumerate(grids): self._grids[gi] = g
def _is_fully_enclosed(self, grid):
- r = np.abs(grid._corners - self.center)
- r = np.minimum(r, np.abs(self.DW[None,:]-r))
- corner_radius = np.sqrt((r**2.0).sum(axis=1))
- return np.all(corner_radius <= self.radius)
+ return False
@restore_grid_state # Pains me not to decorate with cache_mask here
def _get_cut_mask(self, grid, field=None):
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