Fix allowed vectors when (hkl) are slightly off integers#191
Fix allowed vectors when (hkl) are slightly off integers#191pc494 merged 11 commits intopyxem:mainfrom
Conversation
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
4f09624 to
8dce703
Compare
|
A build failed due to Python 3.6 not being available on the Ubuntu 22.04 test architecture (it is available on 20.04). The oldest-version-build now uses 20.04. An alternative is to take the hint and discontinue support for Python 3.6 for diffsims. |
|
Just dropping by, will review it a little later - hopefully tomorrow. I think you're right, this is sensible housekeeping and can go out as a patch almost immediately. I wIll update the copyright dates and do some other small sweeps and then package up. Happy to leave the Py3.6 fix in for now and then post-release drop it (and probably 3.7 at the same time) |
|
Great!
From the package root, using
Packages depending on diffsims, like pyxem, kikuchipy and others, should be notified, via e.g. the changelog, and drop support for 3.7 themselves before it is dropped in diffsims. kikuchipy e.g. supports 3.7. I'll add a statement in the changelog under deprecations that 3.6 support will be dropped in Python 3.6. |
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
|
I'm merging now, are you happy to make the release @hakonanes? |
|
Thank you! Yes, I'll get to it within the next hour. |
|
Patch release is available from PyPI, and Zenodo and the docs were updated successfully. The conda-forge release should be ready by tomorrow afternoon. |
|
It's out on conda-forge. Thank you for the quick review, Phillip! |
|
lovely, just had the ping from conda forge :) |
Description of the change
This patch fixes calculation of allowed vectors in
ReciprocalLatticeVector.allowedwhen vectors (hkl) are slightly off integers. A test has been added that only passes with this patch. See example below for a demonstration.I suggest to make a patch release v0.5.1 immediately after this branch has been merged onto
main(I renamed the main branch frommastertomain). There has been no activity since the v0.5.0 release, so that should be OK.Other changes I've made:
pytest-xdist(test dependency). Should reduce the test time by about half.make linkcheckon the docs and updated some links (had to remove some since I couldn't find a replacement).Progress of the PR
Minimal example of the bug fix or new feature
Only all odd or all even (hkl) are allowed in face-centered cubic lattices. Below we create a set of vectors which all should be allowed.
For reviewers
__init__.py.unreleased section in
CHANGELOG.rst.creditsindiffsims/release_info.pyandin
.zenodo.json.