Skip to content

Commit

Permalink
Merge pull request #700 from ZacharyVarley/ZacharyVarley-patch-WK-sca…
Browse files Browse the repository at this point in the history
…ttering-factors

Update WK_scattering_factors.py
  • Loading branch information
sezelt authored Dec 18, 2024
2 parents a7b8643 + f70514f commit 966a41c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions py4DSTEM/process/diffraction/WK_scattering_factors.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,9 @@ def compute_WK_factor(
B1 = B / (4.0 * np.pi) ** 2

for jj in range(4):
Fphon += (
A1[jj]
* A1[jj]
* (DWF * RI1(B1[jj], B1[jj], G) - RI2(B1[jj], B1[jj], G, UL))
)
for ii in range(jj + 1):
Fphon += (
2.0
(2.0 if jj != ii else 1.0)
* A1[jj]
* A1[ii]
* (DWF * RI1(B1[ii], B1[jj], G) - RI2(B1[ii], B1[jj], G, UL))
Expand Down

0 comments on commit 966a41c

Please sign in to comment.