Skip to content

Commit 5b0bac4

Browse files
committed
Fix #72
1 parent 0ebcaff commit 5b0bac4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The rules for this file:
2222
- ianmkenney
2323
- tylerjereddy
2424
- IAlibay
25+
- chr-sa
2526

2627
### Added
2728
<!-- Added functionality -->

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)