-
Notifications
You must be signed in to change notification settings - Fork 871
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
Adding Abinit magmoms from netCDF files to Structure.site_properties #3936
Conversation
This is ready to be reviewed. I don't know why ruff is failing, I did not make changes in io.vasp, io.aims and analysis. |
tests/files/io/abinit/28ni.paw
Outdated
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.
wow, the GSR files compressed to much smaller than expected. can we compress this file as well? sorry, should have mentioned this file in the first review
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.
done
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 this contribution @gbrunin! 👍
Summary
In recent developments in Abinit, the variables
intgden
andratsph
have been added in the netCDF output files. These correspond to the computed integrated density around atoms and the integration radii. The former can be interpreted as the local magnetic moment on each atom. Since this is a useful quantity for, e.g., CHGNet model training, I have added them assite_properties
of theStructure
that is extracted from the netCDF file. Ifintgden
is not found in the .nc file, nothing is added.While testing with abipy, I also found that recent commits in io.abinit.pseudos were backward incompatible for PAW pseudopotentials. I reverted the changes and added a test.
Tagging @gmatteo to check this.