From eae49b82fe7449350b0b0b5a16cfbdca5cceb1e4 Mon Sep 17 00:00:00 2001 From: Dawn Date: Thu, 27 Aug 2026 16:55:48 +0200 Subject: [PATCH] fix: use total spots according to MW --- src/aarecommon/math/find_xtal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aarecommon/math/find_xtal.py b/src/aarecommon/math/find_xtal.py index 9cd23ff..dda3077 100644 --- a/src/aarecommon/math/find_xtal.py +++ b/src/aarecommon/math/find_xtal.py @@ -365,9 +365,11 @@ def compute_crystal_score_array( 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. + + TODO: update spots and its naming all over the place by middle of Sept 2026 """ arr_bkg = rebuild_array_from_scan_results(scan_results, "bkg") - arr_low = rebuild_array_from_scan_results(scan_results, "spots_low_res") + arr_low = rebuild_array_from_scan_results(scan_results, "spots") arr_idx = rebuild_array_from_scan_results(scan_results, "spots_indexed") def _norm(a: np.ndarray) -> np.ndarray: