Skip to content

Commit

Permalink
switching to middle centered tilts
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Sep 27, 2024
1 parent b7175a2 commit ae83290
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py4DSTEM/tomography/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def preprocess(
self._force_q_to_r_transpose = force_q_to_r_transpose
self._force_q_to_r_rotation_deg = force_q_to_r_rotation_deg

self._datacube_R_pixel_size_A = self._datacube_R_pixel_size_A_init.copy()
self._datacube_R_pixel_size_A = self._datacube_R_pixel_size_A_init

# preprocessing of diffraction data
for a0 in range(self._num_datacubes):
# load and preprocess datacube
Expand Down Expand Up @@ -1161,6 +1161,7 @@ def _forward(
# solve for real space coordinates
line_z = xp.linspace(0, 1, num_points) * (s[2] - 1)
line_y = line_z * xp.tan(tilt)
line_y -= np.mean(line_y)
offset = xp.arange(s[1], dtype="int")

yF = xp.floor(line_y).astype("int")
Expand Down

0 comments on commit ae83290

Please sign in to comment.