Closed hakonanes closed 1 year ago
The two failing tests on Windows Py 3.9/10 are fixed on develop
in #410:
I've also bumped the minimum version of diffpy.structure to 3.0.2 in setup.py. This ensures that Phase.from_cif() works on Windows with Python 3.10. I've added a changelog entry for this change.
I think this fix should be included in a potential patch release.
The failing tests are test_symmetry_plot()
in which the number of Matplotlib collections are checked in the axis returned from Symmetry.plot()
(via the figure). The expected number does not match the actual in these tests.
I can reproduce these errors locally after updating to Matplotlib 3.6.3. When running the code in the tests outside of tests, I get the expected number of collections, though. So I do not know what causes the extra collections when running with pytest.
The errors happen when running on both one or more cores (via pytest-xdist).
I think easing the test criteria is the way to go. Will try to find a fix for this in this PR.
Thank you, @pc494!
Description of the change
EDAX TSL .ang files with ten data columns should be read correctly with this patch.
Fixes #413, where it was identified that two openly available .ang files, shown in https://github.com/pyxem/orix/issues/411#issuecomment-1336408578, were read incorrectly. With this patch, there is a correct correspondence between phase ID and phase list, and the scan unit is "um". Big thanks to @argerlt who pointed me to these datasets.
I've made another small change to IO scan units. Previously, ASTAR/orix/unknown .ang files returned maps with "nm" as scan unit. Now, all but ASTAR .ang files return maps with "um" as scan unit. As far as I know there is no scan unit information .ang files. Hence, we have to guess, and I think the new guess is better.
I'd like to release this as part of a 0.10.3 patch soon (see #415).
Progress of the PR
Minimal example of the bug fix or new feature
Previously
Now
For reviewers
__init__.py
.CHANGELOG.rst
.__credits__
inorix/__init__.py
and in.zenodo.json
.