From 28b29c12ee88aceb2060d5773bb8bb937a84cbe1 Mon Sep 17 00:00:00 2001 From: Dawn Date: Thu, 27 Aug 2026 17:22:36 +0200 Subject: [PATCH] fix: revert to 0.75 low res spot and 0.25 background --- src/aarecommon/math/find_xtal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aarecommon/math/find_xtal.py b/src/aarecommon/math/find_xtal.py index dda3077..18211e3 100644 --- a/src/aarecommon/math/find_xtal.py +++ b/src/aarecommon/math/find_xtal.py @@ -359,7 +359,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.01, w_low_res: float = 0.99, w_indexed: float = 0.00 + 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 (75%), and spots_indexed (00%) into a 0–100 score. @@ -369,7 +369,7 @@ def compute_crystal_score_array( 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") + arr_low = rebuild_array_from_scan_results(scan_results, "spots_low_res") arr_idx = rebuild_array_from_scan_results(scan_results, "spots_indexed") def _norm(a: np.ndarray) -> np.ndarray: