Hello,
I’ve been trying to find an effective way to get the total electron number, which is an important parameter in the code I’m writing. I can get the number like so:
from pymatgen.core.structure import Composition
from pymatgen import MPRester
comp = Composition(“LiFeO4”)
elec = comp.total_electrons
print(elec)
via the Composition library
but is there a way I can get this more simply as an API property let’s say?
Thanks.