Skip to content

Commit

Permalink
small bug in dp_mask for gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed May 31, 2024
1 parent c964ab7 commit 6a48ab0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py4DSTEM/process/phase/phase_base_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ def _calculate_intensities_center_of_mass(

# calculate CoM
if dp_mask is not None:
dp_mask = copy_to_device(dp_mask, device)
intensities_mask = intensities * dp_mask
else:
intensities_mask = intensities
Expand Down

0 comments on commit 6a48ab0

Please sign in to comment.