From 08ba7d379572f1900f68fd2bb21a7942822caaea Mon Sep 17 00:00:00 2001
From: David Rafferty <drafferty@hs.uni-hamburg.de>
Date: Mon, 9 Nov 2020 10:19:46 +0100
Subject: [PATCH] Tweak weighting

---
 lsmtool/operations/group.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lsmtool/operations/group.py b/lsmtool/operations/group.py
index 91fa0bd..41d7cb2 100644
--- a/lsmtool/operations/group.py
+++ b/lsmtool/operations/group.py
@@ -262,7 +262,7 @@ def group(LSM, algorithm, targetFlux=None, weightBySize=False, numClusters=100,
                 sizes[sizes < 1.0] = 1.0
                 medianSize = np.median(sizes)
                 weights = medianSize / sizes
-                weights[weights > 2.0] = 2.0
+                weights[weights > 1.0] = 1.0
                 weights[weights < 0.5] = 0.5
                 fluxes *= weights
             for name, flux in zip(names, fluxes):
-- 
GitLab