Understanding Structures and Properties in the Materials Project
1. Why Structures May Look Different
from mp_api.client import MPRester
with MPRester("YOUR_API_KEY") as mpr:
docs = mpr.materials.summary.search(material_ids=["mp-13", "mp-90"])
structures = {str(doc.material_id): doc.structure for doc in docs}
# Convert to conventional cells
conventional = {mid: s.to_conventional() for mid, s in structures.items()}
# Convert to primitive cells
primitive = {mid: s.get_primitive_structure() for mid, s in conventional.items()}3. Summary Table
Aspect
Legacy MP
Newer MP data
4. Best Practices
Last updated
Was this helpful?