Skip to content

Commit

Permalink
whoooops...now the error is going down
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Sep 1, 2024
1 parent 891a046 commit 3088be2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions py4DSTEM/tomography/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,7 @@ def _calculate_update(
)[:, None]
)
diffraction_patterns_resampled = diffraction_patterns_resampled[ind]
update = diffraction_patterns_resampled
# - object_sliced
update = diffraction_patterns_resampled - object_sliced

error = xp.mean(update.ravel() ** 2) / xp.mean(
diffraction_patterns_projected.ravel() ** 2
Expand Down

0 comments on commit 3088be2

Please sign in to comment.