Skip to content

Commit 6660cdf

Browse files
Apply shifts needed for atlas displays on Talos and Falcon-Krios (#639)
I think these are the necessary changes for search map locations on atlases. Something similar will probably be needed for tomogram locations on search maps
1 parent 344c266 commit 6660cdf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/murfey/workflows/tomo/tomo_metadata.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,15 @@ def register_search_map_in_database(
200200

201201
# Flip positions based on camera type
202202
camera = getattr(Camera, machine_config.camera)
203-
if camera == Camera.K3_FLIPY:
203+
if camera == Camera.FALCON:
204+
# Flip in y
204205
corrected_vector = np.matmul(np.array([[1, 0], [0, -1]]), corrected_vector)
205206
elif camera == Camera.K3_FLIPX:
207+
# Flip in x
206208
corrected_vector = np.matmul(np.array([[-1, 0], [0, 1]]), corrected_vector)
209+
elif camera == Camera.K3_FLIPY:
210+
# Inversion (camera mounted upside-down)
211+
corrected_vector = np.matmul(np.array([[0, 1], [1, 0]]), corrected_vector)
207212

208213
# Convert from metres to pixels
209214
search_map_params.height_on_atlas = int(

0 commit comments

Comments
 (0)