Skip to content

Commit

Permalink
Update digital_dark_field.py
Browse files Browse the repository at this point in the history
Fixed one error that causes incorrect calculation of DDFimage if the pointsarray has 7 columns, by simply changing 2: to 2:5 in the calculation
  • Loading branch information
maclariz authored Nov 20, 2024
1 parent 5e30cae commit 0151417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py4DSTEM/process/diffraction/digital_dark_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def DDFimage(points_array, aperture_positions, Rshape=None, tol=1):
aperture_position = aperture_positions[aperture_index]
intensities = np.vstack(
(
points_array[:, 2:].T,
points_array[:, 2:5].T,
pointlist_differences(aperture_position, points_array),
)
).T
Expand Down

0 comments on commit 0151417

Please sign in to comment.