fix: revert to 0.75 low res spot and 0.25 background #27

Merged
duan_j merged 1 commits from fix/use_total_spots into main 2026-08-27 17:26:10 +02:00
+2 -2
View File
@@ -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 0100 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: