update test_find_xtal too after dropping indexed spots

This commit is contained in:
2026-07-28 12:06:28 +02:00
parent 356ce070a8
commit aabc5300ec
+4 -4
View File
@@ -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):