diff --git a/CHANGELOG.md b/CHANGELOG.md index c59668c..55dd478 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,13 +23,15 @@ The rules for this file: - tylerjereddy - IAlibay - orbeckst +- chr-sa ### Added ### Fixed +- Fix "NameError" for "long" in mdaencore/clustering/affinityprop.pyx (#72, PR #78) - All dependencies added to pyproject.toml, setup.py, and conda envs (#57) -- Temporary fix for Windows integer size default change in NumPy 2.0.0 +- Temporary fix for Windows integer size default change in NumPy 2.0.0 (PR #60) ### Changed - Update CI and wheel deployment to include macos-arm64 and py3.12 (PR #63) diff --git a/mdaencore/clustering/affinityprop.pyx b/mdaencore/clustering/affinityprop.pyx index fe14206..4051403 100644 --- a/mdaencore/clustering/affinityprop.pyx +++ b/mdaencore/clustering/affinityprop.pyx @@ -96,7 +96,7 @@ def AffinityPropagation(s, preference, float lam, int max_iterations, int conver # Prepare input and ouput arrays cdef numpy.ndarray[numpy.float32_t, ndim=1] matndarray = numpy.ascontiguousarray(s._elements, dtype=numpy.float32) - cdef numpy.ndarray[long, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.dtype("long")) + cdef numpy.ndarray[numpy.int64_t, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.int64) # run C module Affinity Propagation iterations = CAffinityPropagation(matndarray.data, cn, lam, max_iterations, convergence, noise, clusters.data)