ELFCAR data field names do not make sense
Pymatgen version
2025.2.18
Current behavior
As @mkhorton has aptly noted:
https://github.com/materialsproject/pymatgen/blob/b5d03d7e313c4933ccad27ac0037cba4a1538351/src/pymatgen/io/vasp/outputs.py#L3944-L3947 https://github.com/materialsproject/pymatgen/blob/b5d03d7e313c4933ccad27ac0037cba4a1538351/src/pymatgen/io/vasp/outputs.py#L3973-L3976
This is pretty self-explanatory. The keys "total" and "diff" are not intuitive or appropriate names for spin up or spin down, especially when we have dedicated keys for those used throughout Pymatgen.
I am not making the change (yet) because I am not 100% certain that the current description is accurate. I assume it is based on the docstring, but I'd like to actually confirm this.
I have confirmed that @mkhorton is correct in that the total and diff are spin up and spin down, respectively, unlike the CHGCAR.
Good catch. This definitely runs the risk of being a "gotcha" for the uninitiated.