From 1e6f503b6f7e4eedde36bb323532b325c10a4ce5 Mon Sep 17 00:00:00 2001 From: Steve Zeltmann <37132012+sezelt@users.noreply.github.com> Date: Fri, 5 Jan 2024 15:06:04 -0800 Subject: [PATCH] Bugfix for forced scan sampling Correctly set scan units when `force_scan_sampling` is used --- py4DSTEM/process/phase/iterative_base_class.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py4DSTEM/process/phase/iterative_base_class.py b/py4DSTEM/process/phase/iterative_base_class.py index a0ed485ba..8b836eae2 100644 --- a/py4DSTEM/process/phase/iterative_base_class.py +++ b/py4DSTEM/process/phase/iterative_base_class.py @@ -342,7 +342,7 @@ def _extract_intensities_and_calibrations_from_datacube( # Real-space if force_scan_sampling is not None: self._scan_sampling = (force_scan_sampling, force_scan_sampling) - self._scan_units = "A" + self._scan_units = ("A",) * 2 else: if real_space_units == "pixels": if require_calibrations: