Skip to content

Commit

Permalink
added contiguous array check
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hennen committed Jul 19, 2016
1 parent 112b0c8 commit 7df09e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cell_tree2d/cell_tree2d.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ cdef class CellTree:

# convert to memoryview:
cdef cnp.ndarray[double, ndim=2, mode="c"] points
points_in = np.asarray(points_in, dtype=np.float64)
points_in = np.ascontiguousarray(points_in, dtype=np.float64)
if len(points_in.shape) < 2: #single [x,y]
points_in = np.expand_dims(points_in, axis=0)
if points_in.shape[1] <> 2:
Expand Down
2 changes: 1 addition & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ source:
git_tag: v0.2.0

build:
number: 0
number: 1

requirements:
build:
Expand Down

0 comments on commit 7df09e4

Please sign in to comment.