Skip to content

Commit

Permalink
fix memoryview doesn't have attribute bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhi authored Nov 4, 2021
1 parent 8072c2c commit 7693b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast_overlap/fast_overlap.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ cpdef overlap(ints[:, :] prev, ints[:,:] curr, shape=None):
curr = np.ascontiguousarray(curr)

if shape is None:
shape = (prev.max(), curr.max())
shape = (np.max(prev), np.max(curr))

cdef int [:, :] arr
arr = np.zeros(shape, dtype=np.dtype("i"))
Expand Down

0 comments on commit 7693b1c

Please sign in to comment.