-
Notifications
You must be signed in to change notification settings - Fork 175
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
Fix for MagneticOrderingsWF static only #768
Conversation
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 for reporting this bug. The term num_formula_units
needs to be corrected rather than the way to calculate total_magnetization_per_formula_unit
. Could you do a quick fix and I will merge this PR after all tests pass.
Let me know if anything else is needed here. |
Hi @fraricci, thanks for the fix. |
I realized that the MagneticOrderingsWF did not work properly when static = True (static calculation only).
Here it is a fix that seems to work fine.
To note that I had to code explicitly "structure is not None" in the StaticFW.
I'm not sure why, probably it's due to the fact that the structure generated
in a MagneticOrderingsWF is a TransformedStructure obj and not a standard Structure obj.
I fixed also a bug in the calculation of the total magnetization per formula unit.