Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encore Windows type fix #60

Merged
merged 2 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ The rules for this file:

### Authors
- ianmkenney
- tylerjereddy

### Added
<!-- Added functionality -->

### Fixed
- 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

### Changed
<!-- Changes in existing functionality -->
Expand Down
2 changes: 1 addition & 1 deletion mdaencore/clustering/affinityprop.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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=long)
cdef numpy.ndarray[long, ndim=1] clusters = numpy.zeros((s.size),dtype=numpy.dtype("long"))

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