Update src/aarecommon/math/find_xtal.py
CI / lint (push) Successful in 16s
CI / lint (pull_request) Successful in 17s
CI / test (3.11) (push) Failing after 21s
CI / test (3.12) (push) Failing after 22s
CI / test (3.11) (pull_request) Failing after 20s
CI / test (3.13) (push) Failing after 23s
CI / test (3.13) (pull_request) Failing after 24s
CI / test (3.12) (pull_request) Failing after 26s

also update the comments
This commit is contained in:
2026-07-28 11:57:11 +02:00
parent b6678a60cc
commit 356ce070a8
+1 -1
View File
@@ -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 0100 score.
"""Combine bkg (25%), spots_low_res (75%), and spots_indexed (00%) into a 0100 score.
Each field is min-max normalised to [0, 100] within the grid before weighting,
so the final score is the probability (0100) that a pixel belongs to a crystal.