From aabc5300ecd1956f7373c798b6e193139357f09c Mon Sep 17 00:00:00 2001 From: Dawn Date: Tue, 28 Jul 2026 12:05:24 +0200 Subject: [PATCH] update test_find_xtal too after dropping indexed spots --- tests/test_find_xtal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_find_xtal.py b/tests/test_find_xtal.py index 02f3a56..874911d 100644 --- a/tests/test_find_xtal.py +++ b/tests/test_find_xtal.py @@ -145,8 +145,8 @@ def test_compute_crystal_score_array(mock_score_results): def test_compute_crystal_score_array_weights(): - # Cell A is the sole max in spots_low_res (weight 0.55); cell B is the sole - # max in spots_indexed (weight 0.20). A must outscore B. + # Cell A is the sole max in spots_low_res (weight 0.75); cell B is the sole + # max in spots_indexed (weight 0.00). A must outscore B. def _cell(nx, n, low, idx): r = MagicMock() r.nx, r.ny, r.number = nx, 0, n @@ -155,8 +155,8 @@ def test_compute_crystal_score_array_weights(): score = compute_crystal_score_array([_cell(0, 0, 10.0, 0.0), _cell(1, 1, 0.0, 10.0)]) assert score[0, 0] > score[1, 0] - assert score[0, 0] == pytest.approx(55.0) - assert score[1, 0] == pytest.approx(20.0) + assert score[0, 0] == pytest.approx(75.0) + assert score[1, 0] == pytest.approx(00.0) def test_raster_highest_score(mock_score_results):