Skip to content

Commit 9c18014

Browse files
committed
Fix batch locations in tests
1 parent 7b4f514 commit 9c18014

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/workflows/tomo/test_tomo_metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def test_register_batch_position_update(murfey_db_session: Session):
249249

250250
# These two should have been updated, values are known as used identity matrices
251251
bp_final_parameters = murfey_db_session.exec(select(TiltSeries)).one()
252-
assert bp_final_parameters.x_location == 880
253-
assert bp_final_parameters.y_location == 1780
252+
assert bp_final_parameters.x_location == 880 * 512 / search_map.width
253+
assert bp_final_parameters.y_location == 1780 * 512 / search_map.width
254254

255255

256256
def test_register_batch_position_update_skip(murfey_db_session: Session):
@@ -361,5 +361,5 @@ def test_register_batch_position_new(murfey_db_session: Session):
361361

362362
# These two should have been updated, values are known as used identity matrices
363363
bp_final_parameters = murfey_db_session.exec(select(TiltSeries)).one()
364-
assert bp_final_parameters.x_location == 880
365-
assert bp_final_parameters.y_location == 1780
364+
assert bp_final_parameters.x_location == 880 * 512 / search_map.width
365+
assert bp_final_parameters.y_location == 1780 * 512 / search_map.width

0 commit comments

Comments
 (0)