Skip to content

Commit 7b4f514

Browse files
committed
Scale tomogram locations to be those on the search map jpg
1 parent d6b4825 commit 7b4f514

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/murfey/workflows/tomo/tomo_metadata.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,20 @@ def register_batch_position_in_database(
339339
search_map.height / 2,
340340
]
341341
tilt_series.x_location = (
342-
centre_batch_pixel[0] - batch_parameters.x_beamshift / search_map.pixel_size
342+
(
343+
centre_batch_pixel[0]
344+
- batch_parameters.x_beamshift / search_map.pixel_size
345+
)
346+
* 512
347+
/ search_map.width
343348
)
344349
tilt_series.y_location = (
345-
centre_batch_pixel[1] - batch_parameters.y_beamshift / search_map.pixel_size
350+
(
351+
centre_batch_pixel[1]
352+
- batch_parameters.y_beamshift / search_map.pixel_size
353+
)
354+
* 512
355+
/ search_map.width
346356
)
347357
else:
348358
logger.warning(

0 commit comments

Comments
 (0)