From 92442e6f6903fbc3f05e269a3666063e235cb2bf Mon Sep 17 00:00:00 2001 From: Kay-Robert Dormann Date: Fri, 1 Nov 2024 13:49:50 +0100 Subject: [PATCH] fixes #85 --- amep/cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amep/cluster.py b/amep/cluster.py index a60be2d..2052b10 100644 --- a/amep/cluster.py +++ b/amep/cluster.py @@ -940,7 +940,8 @@ def identify( sorted_clusters : list List of lists, where each list contains the indices of the particles that belong to the same cluster. The list is sorted by the number of - particles in each cluster. + particles in each cluster. Single particles are also included as + clusters in this list. idx : numpy.ndarray Array of shape (N,) containing the cluster ID for each particle. N is the total number of particles.