From 728f3dbc3c9c9f1b8160cab6c277caada4f96b33 Mon Sep 17 00:00:00 2001 From: Viljar Femoen Date: Fri, 19 Apr 2024 16:20:50 +0200 Subject: [PATCH] Fix failing docs build --- examples/virtual_imaging/creating_a_segmented_detector.py | 6 +++++- pyxem/utils/_azimuthal_integrations.py | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/virtual_imaging/creating_a_segmented_detector.py b/examples/virtual_imaging/creating_a_segmented_detector.py index db797446b..23788ccf9 100644 --- a/examples/virtual_imaging/creating_a_segmented_detector.py +++ b/examples/virtual_imaging/creating_a_segmented_detector.py @@ -22,7 +22,11 @@ # Visualizing the virtual detector cp = _get_control_points( - 1, npt_azim=8, radial_range=(1, 5), affine=dp.calibrate.affine + 1, + npt_azim=8, + radial_range=(1, 5), + azimuthal_range=(-np.pi, np.pi), + affine=dp.calibrate.affine, )[:, :, ::-1] poly = hs.plot.markers.Polygons(verts=cp, edgecolor="w", facecolor="none") dp.plot() diff --git a/pyxem/utils/_azimuthal_integrations.py b/pyxem/utils/_azimuthal_integrations.py index afa438f98..c5d500bff 100644 --- a/pyxem/utils/_azimuthal_integrations.py +++ b/pyxem/utils/_azimuthal_integrations.py @@ -241,6 +241,8 @@ def _get_control_points(npt, npt_azim, radial_range, azimuthal_range, affine): The center of the diffraction pattern radial_range: (float, float) The radial range of the data + azimuthal_range: (float, float) + The azumuthal range of the data, in radians Returns -------