Skip to content

Commit

Permalink
bug in ptycho-tomo object support mask
Browse files Browse the repository at this point in the history
  • Loading branch information
gvarnavi committed Nov 16, 2024
1 parent af0109a commit b195d0d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions py4DSTEM/process/phase/ptychographic_tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,10 @@ def reconstruct(
use_fourier_rotation,
)

if not collective_measurement_updates:
if (
not collective_measurement_updates
and object_real_space_support_mask is not None
):
object_real_space_support_mask = self._rotate_zxy_volume(
object_real_space_support_mask,
rot_matrix @ old_rot_matrix.T,
Expand Down Expand Up @@ -1464,11 +1467,12 @@ def reconstruct(
use_fourier_rotation,
)

object_real_space_support_mask = self._rotate_zxy_volume(
object_real_space_support_mask,
old_rot_matrix,
use_fourier_rotation,
)
if object_real_space_support_mask is not None:
object_real_space_support_mask = self._rotate_zxy_volume(
object_real_space_support_mask,
old_rot_matrix,
use_fourier_rotation,
)

# object only
self._object = self._object_constraints(
Expand Down

0 comments on commit b195d0d

Please sign in to comment.