-
Notifications
You must be signed in to change notification settings - Fork 868
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
Support magmoms
in get_phonopy_structure()
#3555
Conversation
Tagging @JonathanSchmidt1 as I have seen a similar fix in one of his atomate2 branches. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tomdemeyere! 👍
@JaGeo My solution basically was the same as here.
For me auto was not working with magmoms so I had to remove it. If this is still the case, it might be an option to give a warning in atomate2 and specifically disable auto for magnetic structures. |
@JonathanSchmidt1 Thanks! I will keep the potential issue for atomate2 in mind. |
prop = {key: val[idx] for key, val in site_properties.items()}
magmoms
in get_phonopy_structure()
Summary
Phonopy needs magnetic moments to calculate the symmetry etc, currently pymatgen does not send it.
Checklist
ruff
.mypy
.python -m pytest tests/io/test_phonopy.py fails with "ImportError: cannot import name 'coord_cython' from 'pymatgen.util'", any ideas?