Hello! I browsed the forum for similar questions in the past and didn’t find any that answered my question, so I’m posting it below. I apologize if any of this should be obvious to a more experienced user!
I am trying to use Bader analysis to obtain oxidation states of some structures. To do this, I downloaded the CHGCARs from the MP_API and run Bader on the files. I then subtracted the Bader charge of each atom from the total number of valence electrons of that atom using a POTCAR that I have generated. My issue is that I am getting some odd values: for example, in mp-1220693, I get a charge of 16.5 and therefore an oxidation state of -5.5 on the Cu atom. While troubleshooting, I noticed that the total number of electrons (55 e-) from the Bader analysis is far fewer than I would expect from the total charge density of this structure. I am unsure how many electrons were originally included in the CHGCAR calculation for any given atom, which I suspect is where my problem is coming from. This brings me to my question: is there a way to see what pseudopotentials were used, and from there, see how many electrons would be included for each atom? Additionally, can I expect pseudopotentials to be consistent across MP and assume that an atom of element X would have the same number of electrons in two different structures?
TL:DR: To obtain Bader-approximated oxidation states, I am essentially trying to determine the correct number of electrons from which to subtract the Bader charge, which would be however many electrons are used in the CHGCAR calculation for that atom. I am looking for a way to determine the number of electron electrons that are accounted for in each atom in the pseudopotential.