EBSD.extract_grid((5, 5)) which extracts a new EBSD signal with 25 patterns evenly distributed in the original signal.
kikuchipy.signals.util.grid_indices((5, 5), (149, 200)) which returns 25 2D indices into a map of shape (149, 200). This is used in the above EBSD method.
Description of the change
This PR adds two functions:
EBSD.extract_grid((5, 5))
which extracts a newEBSD
signal with 25 patterns evenly distributed in the original signal.kikuchipy.signals.util.grid_indices((5, 5), (149, 200))
which returns 25 2D indices into a map of shape (149, 200). This is used in the aboveEBSD
method.Numerous other small fixes are also done.
Progress of the PR
EBSD.extract_grid()
Minimal example of the bug fix or new feature
See example added to gallery:
For reviewers
__init__.py
.CHANGELOG.rst
.release.py
,.zenodo.json
and.all-contributorsrc
with the table regenerated.