From 27bdd0cf70a148c1bfced04a5fe6927894899004 Mon Sep 17 00:00:00 2001
From: payno <henri.payno@gmail.com>
Date: Fri, 21 Mar 2025 11:23:52 +0100
Subject: [PATCH] gui - stitching: overwrite any axis refinement operations.

This methods allow us to make sure the value to be used for the stitching will be the one used in the preview.

close #1405
---
 src/tomwer/gui/stitching/StitchingWindow.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tomwer/gui/stitching/StitchingWindow.py b/src/tomwer/gui/stitching/StitchingWindow.py
index b93c6bfe0e..7586043017 100644
--- a/src/tomwer/gui/stitching/StitchingWindow.py
+++ b/src/tomwer/gui/stitching/StitchingWindow.py
@@ -438,6 +438,11 @@ class _SingleAxisStitchingWindow(
         # update to force overwrite
         config["output"]["overwrite_results"] = True
 
+        # avoid any recalculation of the axis position. So the preview is accurate
+        config["output"]["axis_0_params"] = ""
+        config["output"]["axis_1_params"] = ""
+        config["output"]["axis_2_params"] = ""
+
         # clean current preview to notify some calculation is going on
         preview_plot = self._widget._mainWidget._previewPlot
         preview_plot._waitingOverlay.show()
-- 
GitLab