Skip to content

Commit

Permalink
Merge #1035 which renames some private utils
Browse files Browse the repository at this point in the history
  • Loading branch information
pc494 committed Mar 17, 2024
2 parents ff7fd9f + 2261922 commit 7c94927
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/virtual_imaging/creating_a_segmented_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

import pyxem as pxm
from pyxem.utils._azimuthal_utils import _get_control_points
from pyxem.utils._azimuthal_integrations import _get_control_points
import numpy as np
import hyperspy.api as hs

Expand Down
6 changes: 4 additions & 2 deletions pyxem/signals/diffraction2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
sigma_clip,
center_of_mass,
)
from pyxem.utils._azimuthal_utils import (
from pyxem.utils._azimuthal_integrations import (
_slice_radial_integrate,
_slice_radial_integrate1d,
)
Expand Down Expand Up @@ -2079,7 +2079,9 @@ def get_azimuthal_integral2d(
npt, npt_azim, radial_range=radial_range
)
if self._gpu and CUPY_INSTALLED: # pragma: no cover
from pyxem.utils._azimuthal_utils import _slice_radial_integrate_cupy
from pyxem.utils._azimuthal_integrations import (
_slice_radial_integrate_cupy,
)

slices = cp.asarray(slices)
factors = cp.asarray(factors)
Expand Down
2 changes: 1 addition & 1 deletion pyxem/signals/diffraction_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

from pyxem.utils._slicers import Slicer

from pyxem.utils._subpixel_utils import (
from pyxem.utils._subpixel_finding import (
_conventional_xc_map,
_center_of_mass_map,
_get_simulated_disc,
Expand Down
2 changes: 1 addition & 1 deletion pyxem/tests/signals/test_diffraction_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


from pyxem.signals import DiffractionVectors, DiffractionVectors2D
from pyxem.utils._subpixel_utils import (
from pyxem.utils._subpixel_finding import (
_center_of_mass_hs,
_get_experimental_square,
_conventional_xc,
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pyxem/utils/calibration_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from hyperspy.axes import UniformDataAxis

from pyxem.utils.indexation_utils import index_dataset_with_template_rotation
from pyxem.utils._azimuthal_utils import _get_control_points, _get_factors
from pyxem.utils._azimuthal_integrations import _get_control_points, _get_factors
from pyxem.utils._deprecated import deprecated


Expand Down

0 comments on commit 7c94927

Please sign in to comment.