Skip to content

Commit

Permalink
proper WDD normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
gvarnavi committed Oct 20, 2024
1 parent b697818 commit 428c4ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions py4DSTEM/process/phase/direct_ptychography.py
Original file line number Diff line number Diff line change
Expand Up @@ -2038,9 +2038,7 @@ def wrapper_function(**kwargs):
for (ind_x, ind_y), res in zip(np.ndindex((sx, sy)), flat_results):
psi[ind_x, ind_y] = res

normalization = (
xp.abs(psi[0, 0]) / np.prod(self._intensities_shape) / wdd_probe_0
)
normalization = xp.abs(psi[0, 0]) / sx / sy
psi /= normalization

self._object = xp.fft.ifft2(psi)
Expand Down

0 comments on commit 428c4ed

Please sign in to comment.