#!/usr/bin/env python # coding: utf-8 # This notebook illustrates how to obtain an explaination of the different corrections being applied in the Materials Project. # In[1]: import re from pymatgen.entries.computed_entries import ComputedEntry from pymatgen.entries.compatibility import MaterialsProjectCompatibility # In[2]: from pymatgen import MPRester #To do our testing, let's use the MPRester to get a sample computed entry from the Materials Project. m = MPRester() entries = m.get_entries("LiFePO4") entry = entries[0] # In[3]: compat = MaterialsProjectCompatibility() # In[4]: compat.explain(entry)