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

Fix #4731 #4837

Merged
merged 4 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Fixes
* Fixes deprecation warning Array to scalar convertion. Replaced atan2() with np.arctan2() (Issue #4339)
* Replaced mutable defaults with None and initialized them within
the function to prevent shared state. (Issue #4655)
* Updated the docs for the self_distance_array function in package/MDAnalysis/lib/distances.py (Issue #4731)
RMeli marked this conversation as resolved.
Show resolved Hide resolved

Enhancements
* Enable parallelization for analysis.nucleicacids.NucPairDist (Issue #4670)
Expand Down
5 changes: 2 additions & 3 deletions package/MDAnalysis/lib/distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,9 @@ def self_distance_array(

for i in range(n):
for j in range(i + 1, n):
dist[i, j] = dist[j, i] = d[k]
k += 1
dist[i, j] = d[k]



.. versionchanged:: 0.13.0
Added *backend* keyword.
.. versionchanged:: 0.19.0
Expand Down
Loading