Hello,
One way you can get the charges on each site by first using the `structure_to_oxidstructure` function in matminer’s utility functions (link).
The code would be something like
from matminer.utils.conversions import structure_to_oxidstructure
structure_to_oxidstructure(data[‘structure’], inplace=True)
This code will attempt to guess oxidation states for each atom based on the composition of the structure, and save that oxidation state in the structure so that EwaldSiteEnergy could use it.
If your data is not in a pandas DataFrame, you can call the ` add_oxidation_state_by_guess` function directly (see pymatgen’s documentation, and an example in matminer’s unit tests).
Best,
Logan
--
You received this message because you are subscribed to the Google Groups "matminer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to matminer+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/matminer/91ad06a6-3aa7-4ff1-8ec4-987d685021eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/matminer/5b58f0c6.1c69fb81.77cbe.bee9%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.