1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Roland Mas <roland.mas@entierement.net>
Date: Wed, 29 Oct 2025 17:37:44 +0100
Subject: Fix attribute names
---
nabu/stitching/stitcher/pre_processing.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/nabu/stitching/stitcher/pre_processing.py b/nabu/stitching/stitcher/pre_processing.py
index 0e831f3..bf18a89 100644
--- a/nabu/stitching/stitcher/pre_processing.py
+++ b/nabu/stitching/stitcher/pre_processing.py
@@ -244,13 +244,13 @@ class PreProcessingStitching(SingleAxisStitcher):
elif not numpy.isclose(scan_0.sample_detector_distance, scan_1.sample_detector_distance, rtol=10e-3):
raise ValueError(f"{scan_0} and {scan_1} have different sample / detector distance")
# check pixel size
- if not numpy.isclose(scan_0.sample_x_pixel_size, scan_1.sample_x_pixel_size):
+ if not numpy.isclose(scan_0.x_pixel_size, scan_1.x_pixel_size):
raise ValueError(
- f"{scan_0} and {scan_1} have different x pixel size. {scan_0.sample_x_pixel_size} vs {scan_1.sample_x_pixel_size}"
+ f"{scan_0} and {scan_1} have different x pixel size. {scan_0.x_pixel_size} vs {scan_1.x_pixel_size}"
)
- if not numpy.isclose(scan_0.sample_y_pixel_size, scan_1.sample_y_pixel_size):
+ if not numpy.isclose(scan_0.y_pixel_size, scan_1.y_pixel_size):
raise ValueError(
- f"{scan_0} and {scan_1} have different y pixel size. {scan_0.sample_y_pixel_size} vs {scan_1.sample_y_pixel_size}"
+ f"{scan_0} and {scan_1} have different y pixel size. {scan_0.y_pixel_size} vs {scan_1.y_pixel_size}"
)
for scan in self.series:
|