Skip to content

Commit

Permalink
Merge pull request #685 from maclariz/DDF-patch-6
Browse files Browse the repository at this point in the history
Update digital_dark_field.py DDF-patch-6
  • Loading branch information
smribet authored Sep 18, 2024
2 parents 1137637 + bad4498 commit 4ad052d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py4DSTEM/process/diffraction/digital_dark_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ def pointlist_to_array(
if True, applies pixel calibration to bragg_peaks
rotate: bool
if True, applies rotational calibration to bragg_peaks
rphi: bool
if True, generates two extra columns of Qr and Qphi for addressing in polar
coordinates
rphi: bool
if True, generates two extra columns of Qr and Qphi for addressing in polar
coordinates, Qphi is the angle anticlockwise from horizontal to the right
Returns
----------
Expand Down Expand Up @@ -380,7 +380,7 @@ def pointlist_to_array(
vectors.qx.shape[0] * [i],
vectors.qx.shape[0] * [j],
(vectors.qx**2 + vectors.qy**2) ** 0.5,
np.degrees(np.arctan2(vectors.qx, vectors.qy)),
np.degrees(np.arctan2(-vectors.qx, vectors.qy)),
]
).T
else:
Expand All @@ -392,7 +392,7 @@ def pointlist_to_array(
vectors.qx.shape[0] * [i],
vectors.qx.shape[0] * [j],
(vectors.qx**2 + vectors.qy**2) ** 0.5,
np.degrees(np.arctan2(vectors.qx, vectors.qy)),
np.degrees(np.arctan2(-vectors.qx, vectors.qy)),
]
).T
points_array = np.vstack((points_array, nps))
Expand Down

0 comments on commit 4ad052d

Please sign in to comment.