Skip to content

Commit

Permalink
Bugfix for forced scan sampling
Browse files Browse the repository at this point in the history
Correctly set scan units when `force_scan_sampling` is used
  • Loading branch information
sezelt authored Jan 5, 2024
1 parent 65dbd2f commit 1e6f503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4DSTEM/process/phase/iterative_base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1e6f503

Please sign in to comment.