1. Matthew Turk
  2. yt-3.0


Sam Leitner  committed 649fe82

fix to iterating pos if dimensions are not all the same.

  • Participants
  • Parent commits 6acd615
  • Branches yt-3.0

Comments (0)

Files changed (1)

File yt/geometry/selection_routines.pyx

View file
 import numpy as np
 cimport numpy as np
 cimport cython
-from stdlib cimport malloc, free
+from libc.stdlib cimport malloc, free
 from fp_utils cimport fclip, iclip
 from cython.parallel import prange, parallel, threadid
 from selection_routines cimport SelectorObject
                         pos, dds, mask)
-                    pos[2] += dds[2]
-                pos[1] += dds[2]
-            pos[0] += dds[2]
+                    pos[2] += dds[2] 
+                pos[1] += dds[1]
+            pos[0] += dds[0] 
         return mask.astype("bool")