[yt-svn] commit/yt: MatthewTurk: Merged in ngoldbaum/yt (pull request #2434)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Nov 18 08:12:03 PST 2016
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/cd8abd2f3e65/
Changeset: cd8abd2f3e65
Branch: yt
User: MatthewTurk
Date: 2016-11-18 16:11:37+00:00
Summary: Merged in ngoldbaum/yt (pull request #2434)
[bugfix] Explicitly use integer division in octree indexing
Affected #: 1 file
diff -r fb1b143f488cd3dbfaeb84aa6c745df8d4daef5e -r cd8abd2f3e65292fbd05dc3b4aaf9ec4fcae7130 yt/data_objects/octree_subset.py
--- a/yt/data_objects/octree_subset.py
+++ b/yt/data_objects/octree_subset.py
@@ -93,7 +93,7 @@
def _reshape_vals(self, arr):
nz = self.nz
if len(arr.shape) <= 2:
- n_oct = arr.shape[0] / (nz**3)
+ n_oct = arr.shape[0] // (nz**3)
else:
n_oct = max(arr.shape)
if arr.size == nz*nz*nz*n_oct:
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