Skip to content

Commit

Permalink
Merge pull request #704 from ZacharyVarley/ZacharyVarley-patch-WK-WEK…
Browse files Browse the repository at this point in the history
…O-threshold

Update WK_scattering_factors.py
  • Loading branch information
sezelt authored Jan 23, 2025
2 parents c500750 + 86c6a68 commit a68396b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4DSTEM/process/diffraction/WK_scattering_factors.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def compute_WK_factor(
WK = np.zeros_like(S)
for i in range(4):
argu = B[i] * S**2
sub = argu < 1.0
sub = argu < 0.1
WK[sub] += A[i] * B[i] * (1.0 - 0.5 * argu[sub])
sub = np.logical_and(argu >= 1.0, argu <= 20.0)
WK[sub] += A[i] * (1.0 - np.exp(-argu[sub])) / S[sub] ** 2
Expand Down

0 comments on commit a68396b

Please sign in to comment.