From 409828c0367c71532a7b0f1d381ba12873875327 Mon Sep 17 00:00:00 2001
From: Andrey Aristov <aaristov@pasteur.fr>
Date: Thu, 9 Jun 2022 17:51:22 +0200
Subject: [PATCH] fix rotation axes

---
 align.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/align.py b/align.py
index 2be1c85..7963c3a 100644
--- a/align.py
+++ b/align.py
@@ -118,9 +118,9 @@ def align2D(
         
     data = stack_dask.compute()
     if rotation_data_deg != 0:
-        data = rotate(data, rotation_data_deg)
+        data = rotate(input=data, angle=rotation_data_deg, axes=(1,2))
         print(f'Rotated data {rotation_data_deg} deg')
-        
+
     aligned, tvec = register.align_stack(
         data, 
         path_to_save=None, 
-- 
GitLab