Skip to content

Commit

Permalink
Update distances.py
Browse files Browse the repository at this point in the history
Doc fix for self_distance_array()
  • Loading branch information
tanishy7777 authored Dec 15, 2024
1 parent 7f686ca commit 55c6755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/MDAnalysis/lib/distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def self_distance_array(
for i in range(n):
for j in range(i + 1, n):
k += 1
dist[i, j] = d[k]
dist[i, j] = dist[j, i] = d[k]
k += 1
.. versionchanged:: 0.13.0
Expand Down

0 comments on commit 55c6755

Please sign in to comment.