orix
orix copied to clipboard
Add CTF file reader and interactive crystal map plot example
Description of the change
Following up #412, added a file reader for Oxford AZtec HKL .ctf file. Added an example jupyter notebook for interactive plotting - clicking on an IPF map to retrieve phase name and Euler angles.
Progress of the PR
- [x] Docstrings for all functions
- [x] Unit tests with pytest for all lines
- [x] Clean code style by running black via pre-commit
Minimal example of the bug fix or new feature
>>> from orix import io
>>> xmap = io.load("data.ctf")
>>> xmap
Phase Orientations Name Space group Point group Proper point group Color
-1 8358 (2.5%) not_indexed None None None w
1 322978 (97.5%) Iron fcc Fm-3m m-3m 432 tab:blue
Properties: bands, error, MAD, BC, BS
Scan unit: um
For reviewers
- [x] The PR title is short, concise, and will make sense 1 year later.
- [x] New functions are imported in corresponding
__init__.py
. - [x] New features, API changes, and deprecations are mentioned in the unreleased
section in
CHANGELOG.rst
. - [ ] Contributor(s) are listed correctly in
__credits__
inorix/__init__.py
and in.zenodo.json
.