==========
Fixed
-----
- Fixed pytest failure. Changed ``setup`` --> ``setup_method`` (997)
- :meth:`pyxem.signals.Diffraction2D.center_of_mass` now uses the :meth:`hyperspy.api.BaseSignal.map` function. (1005)
- Replace ``matplotlib.cm.get_cmap`` (removed in matplotlib 3.9) with ``matplotlib.colormaps``. (1023)
- Documentation fixes and improvement. (1028)
- Fixed bug with flattening diffraction Vectors when there are different scales (1024)
- Fixed intersphinx links and improved api documentation (1056)
- Fix an off-by-one error in the :meth:`pyxem.signals.Diffraction2D.get_azimuthal_integral2d` (1058)
- Fix handling of azimuthal range in :meth:`pyxem.signals.Diffraction2D.get_azimuthal_integral2d` (1060)
Added
-----
- Added :class:`pyxem.utils.calibration_utils.Calibration` class for calibrating the signal axes of a 4-D STEM dataset(993)
- Added :meth:`pyxem.signals.Diffraction2D.get_azimuthal_integral1D` method to calculate the azimuthal integral of a 2D diffraction pattern (1008)
- Added example for doing azimuthal integration of a 2d diffraction pattern (1009)
- Added :meth:`pyxem.signals.CommonDiffraction.get_virtual_image` method to calculate multiple virtual images
from a 4D STEM dataset (1014)
- Added GPU support for lazy signals. (1012)
- Added GPU processing for :meth:`pyxem.signals.Diffraction2D.get_azimuthal_integral2d` (1012)
- Added :meth:`pyxem.signals.Diffraction2D.get_diffraction_vectors` to directly return the diffraction vectors (1053)
- Added method for calibrating the detector gain (1046)
- Added :meth:`pyxem.signals.PolarDiffraction2D.subtract_diffraction_background` for polar-specific background subtraction (1062)
Deprecated
----------
- The module & all functions within ``utils.reduced_intensity1d`` are deprecated in favour of using the methods of `ReducedIntensity1D` (994).
- Deprecated ``CalibrationGenerator`` and ``CalibrationLibrary`` in favour of :class:`pyxem.utils.calibration.Calibration` class (1000)
- Detector module as we move away from pyfai
- Deprecated ``pyxem.generators.virtual_image_generator.VirtualImageGenerator`` in
favor of :meth:`pyxem.signals.CommonDiffraction.get_virtual_image` (1014)
- Several utility modules have been deprecated: utils.{pyfai,segement,virtual_images,background_utils,cluster_tools,signals, radial_utils} (1030 & 1060, 1055).
- The following utils: ``insitu_utils``, ``correlations_utils`` and ``pixelated_stem_tools``, ``dask_tools`` are now private.
- ``utils.vector_utils``, prefer ``utils.vectors``
- ``utils.symmetric_vector_utils``, prefer ``utils.vectors``
- ``utils.labeled_vector_utils``, prefer ``utils.vectors``
- ``utils.expt_utils``, prefer ``utils.diffraction``
Deleted
-------
- Several expired methods of :class:`pyxem.signals.Diffraction2D` associated with radial integration (998)
- The ``peak_find_lazy`` method of :class:`pyxem.signals.Diffraction2D` (1040)
- ``dummy_data`` that content is now available under ``data.dummy_data``
Changed
-------
- Subpixel refinement now a function of the :py:class:`~pyxem.signals.DiffractionVectors` class (980)
- The :py:class:`~pyxem.generators.SubpixelrefinementGenerator` class has been deprecated (980)