From 356ce070a815470c930936ff870176169f3fd429 Mon Sep 17 00:00:00 2001 From: duan_j Date: Tue, 28 Jul 2026 11:57:11 +0200 Subject: [PATCH] Update src/aarecommon/math/find_xtal.py also update the comments --- src/aarecommon/math/find_xtal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aarecommon/math/find_xtal.py b/src/aarecommon/math/find_xtal.py index efbf5db..014cb52 100644 --- a/src/aarecommon/math/find_xtal.py +++ b/src/aarecommon/math/find_xtal.py @@ -347,7 +347,7 @@ def has_sufficient_low_res_spots(result_array: np.ndarray, min_spots_low_res: fl def compute_crystal_score_array( scan_results: List, w_bkg: float = 0.25, w_low_res: float = 0.75, w_indexed: float = 0.00 ) -> np.ndarray: - """Combine bkg (25%), spots_low_res (55%), and spots_indexed (20%) into a 0–100 score. + """Combine bkg (25%), spots_low_res (75%), and spots_indexed (00%) into a 0–100 score. Each field is min-max normalised to [0, 100] within the grid before weighting, so the final score is the probability (0–100) that a pixel belongs to a crystal.