Repository navigation
Conversation
Collaborator
Author
|
pre-commit.ci autofix |
argerlt
force-pushed
the
Retain-miller-symmetry-information
branch
from
September 9, 2026 00:34
50e7905 to
30323bc
Compare
Collaborator
Author
|
Addendum: Maybe we don't want to get into it now, but the latest commit would eliminate the need for #499 and #500 as well. IMO, the related thread on diffsims was about if you should or shouldn't do the given example calculation, which is an important question for Diffsims, but handling it on the ORIX side is a far simpler single-line fix. @viljarjf 's original solution is basically what I did here to get Vector+Miller to always return a Miller, so it seems like a great solution now, whereas I believe #499 breaks some newer orix features. If anyone disagrees, let me know and I'll revert it. |
…inations both return millers
argerlt
force-pushed
the
Retain-miller-symmetry-information
branch
from
October 16, 2026 21:55
30323bc to
a73522a
Compare
Collaborator
Author
|
classes work as expected now, just need to write unit tests and examples. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the change
Solves #501. @hakonanes and/or @viljarjf , let me know what you think of this approach. if we like it, I will address the failing unit tests add some new ones, and include documentation.
Main features of this PR:
__neg__,__add__, and__sub__no longer discard phase information or coordinate preferenceVector3d._radd__,Vector3d._rsub__,Vector3d._sub__andVector3d.__rmul__to avoid repeating code and allow inheriting phase information from aMillerclass.Progress of the PR
Minimal example of the bug fix or new feature
For reviewers
__init__.py.section in
CHANGELOG.rst.__credits__inorix/__init__.pyand in.zenodo.json.