Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update digital_dark_field.py DDF-patch-6 #685

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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