[yt-svn] commit/yt: brittonsmith: Casting indices arrays as int64 because we were going beyond the int32 limit with deep hierarchies.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Feb 28 04:03:39 PST 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/67fde279e855/
Changeset: 67fde279e855
Branch: yt-3.0
User: brittonsmith
Date: 2014-02-28 12:59:25
Summary: Casting indices arrays as int64 because we were going beyond the int32 limit with deep hierarchies.
Affected #: 1 file
diff -r b8192257604644d2bb7a3534100df39fee93b072 -r 67fde279e85585f2fb2d6527342d3f0f63c320fb yt/geometry/selection_routines.pyx
--- a/yt/geometry/selection_routines.pyx
+++ b/yt/geometry/selection_routines.pyx
@@ -59,8 +59,8 @@
def convert_mask_to_indices(np.ndarray[np.uint8_t, ndim=3, cast=True] mask,
int count, int transpose = 0):
cdef int i, j, k, cpos
- cdef np.ndarray[np.int32_t, ndim=2] indices
- indices = np.zeros((count, 3), dtype='int32')
+ cdef np.ndarray[np.int64_t, ndim=2] indices
+ indices = np.zeros((count, 3), dtype='int64')
cpos = 0
for i in range(mask.shape[0]):
for j in range(mask.shape[1]):
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