Skip to content

Commit 6eb9a68

Browse files
committed
Fix it for k3 flipx
1 parent 07d068f commit 6eb9a68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/murfey/workflows/tomo/tomo_metadata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ def register_search_map_in_database(
196196
)
197197

198198
camera = getattr(Camera, machine_config.camera)
199-
if camera == Camera.FALCON or Camera.K3_FLIPY:
199+
if camera == Camera.K3_FLIPY: # Camera.FALCON ?
200200
corrected_vector = np.matmul(np.array([[1, 0], [0, -1]]), corrected_vector)
201201
elif camera == Camera.K3_FLIPX:
202-
corrected_vector = np.matmul(np.array([[-1, 0], [0, 1]]), corrected_vector)
202+
corrected_vector = -1 * corrected_vector
203203

204204
search_map_params.height_on_atlas = int(
205205
search_map.height * search_map.pixel_size / dcg.atlas_pixel_size
@@ -247,6 +247,7 @@ def register_batch_position_in_database(
247247
tilt_series = murfey_db.exec(
248248
select(TiltSeries)
249249
.where(TiltSeries.tag == batch_name)
250+
.where(TiltSeries.rsync_source == batch_parameters.tag)
250251
.where(TiltSeries.session_id == session_id)
251252
).one()
252253
if tilt_series.x_location:

0 commit comments

Comments
 (0)