[yt-svn] commit/yt-3.0: MatthewTurk: Fixing a regression in off axis cutting planes.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Nov 14 04:50:35 PST 2013
1 new commit in yt-3.0:
https://bitbucket.org/yt_analysis/yt-3.0/commits/5d18ef99633e/
Changeset: 5d18ef99633e
Branch: yt-3.0
User: MatthewTurk
Date: 2013-11-14 13:50:24
Summary: Fixing a regression in off axis cutting planes.
Affected #: 1 file
diff -r d8284f61124e18ad74e43f7b581755c7776441ab -r 5d18ef99633efa85f5ea39c63d1509554b759eb8 yt/data_objects/selection_data_containers.py
--- a/yt/data_objects/selection_data_containers.py
+++ b/yt/data_objects/selection_data_containers.py
@@ -359,7 +359,7 @@
x = self._current_chunk.fcoords[:,0] - self.center[0]
y = self._current_chunk.fcoords[:,1] - self.center[1]
z = self._current_chunk.fcoords[:,2] - self.center[2]
- tr = np.zeros(self.size, dtype='float64')
+ tr = np.zeros(x.size, dtype='float64')
tr += x * self._x_vec[0]
tr += y * self._x_vec[1]
tr += z * self._x_vec[2]
@@ -368,7 +368,7 @@
x = self._current_chunk.fcoords[:,0] - self.center[0]
y = self._current_chunk.fcoords[:,1] - self.center[1]
z = self._current_chunk.fcoords[:,2] - self.center[2]
- tr = np.zeros(self.size, dtype='float64')
+ tr = np.zeros(x.size, dtype='float64')
tr += x * self._y_vec[0]
tr += y * self._y_vec[1]
tr += z * self._y_vec[2]
@@ -377,7 +377,7 @@
x = self._current_chunk.fcoords[:,0] - self.center[0]
y = self._current_chunk.fcoords[:,1] - self.center[1]
z = self._current_chunk.fcoords[:,2] - self.center[2]
- tr = np.zeros(self.size, dtype='float64')
+ tr = np.zeros(x.size, dtype='float64')
tr += x * self._norm_vec[0]
tr += y * self._norm_vec[1]
tr += z * self._norm_vec[2]
Repository URL: https://bitbucket.org/yt_analysis/yt-3.0/
--
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