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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Nov 18 08:12:05 PST 2016


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/dd654488583b/
Changeset:   dd654488583b
Branch:      yt
User:        ngoldbaum
Date:        2016-11-08 15:02:01+00:00
Summary:     [bugfix] Explicitly use integer division in octree indexing
Affected #:  1 file

diff -r 1a290fab65e430186f2c6e80ae19ae6084402dc4 -r dd654488583b8eda42247a7e5b5c89c0ddee78cd 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:


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