From 80b28c88e2cc2956177cc6603e52363fee179e23 Mon Sep 17 00:00:00 2001 From: Tanish Yelgoe <143334319+tanishy7777@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:33:28 +0530 Subject: [PATCH] Fix #4731 (#4837) --- package/MDAnalysis/lib/distances.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package/MDAnalysis/lib/distances.py b/package/MDAnalysis/lib/distances.py index 524b9f4063..2759a0ffb3 100644 --- a/package/MDAnalysis/lib/distances.py +++ b/package/MDAnalysis/lib/distances.py @@ -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