Skip to content

Commit 0d13224

Browse files
committed
attempt to fix MDAnalysis#72
1 parent 0ebcaff commit 0d13224

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdaencore/clustering/affinityprop.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def AffinityPropagation(s, preference, float lam, int max_iterations, int conver
9696

9797
# Prepare input and ouput arrays
9898
cdef numpy.ndarray[numpy.float32_t, ndim=1] matndarray = numpy.ascontiguousarray(s._elements, dtype=numpy.float32)
99-
cdef numpy.ndarray[long, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.dtype("long"))
99+
cdef numpy.ndarray[numpy.int64_t, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.int64)
100100

101101
# run C module Affinity Propagation
102102
iterations = CAffinityPropagation(<float*>matndarray.data, cn, lam, max_iterations, convergence, noise, <long*>clusters.data)

0 commit comments

Comments
 (0)