Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miller dunder methods silently discards the phase #501

Open
hakonanes opened this issue May 8, 2024 · 0 comments
Open

Miller dunder methods silently discards the phase #501

hakonanes opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hakonanes
Copy link
Member

As reported by @viljarjf in pyxem/diffsims#211, negating a Miller instance silently discards the phase. His example here shows the problem:

from orix.vector import Miller
from orix.crystal_map import Phase

p = Phase(point_group="m-3m")
v = Miller([1, 0, 0], phase=p)

print(v)
print(-v)

>>> Miller (1,), point group m-3m, xyz
[[1 0 0]]
>>> Miller (1,), point group None, xyz
[[-1  0  0]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant