-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Code snippet
from mp_api.client import MPRester
all_element_lists = [['C', 'O', 'Yb']]
all_docs = []
with MPRester() as mpr:
for elements in all_element_lists:
print(elements)
entries = mpr.get_entries_in_chemsys(elements)
mpids_raw = [entry.data["material_id"] for entry in entries]
mpids_raw = ",".join(mpids_raw)
docs = mpr.materials.summary.search(
material_ids=mpids_raw,
energy_above_hull=(0,0.01),
# deprecated=True,
fields=["material_id", "structure", "band_gap"],
)
all_docs.extend(docs)
print(f"Pulled {len(all_docs)} total docs")
for doc in all_docs:
mpid = doc.material_id
formula = doc.structure.composition.reduced_formula
print(f"{mpid}: {formula}")
What happened?
I am attempting to pull Yb pstructures from the materials project using MPRester(). For some reason, although other elements (C, O) are being pulled just fine, no Yb structures are extracted at all. Even setting deprecated=True to see if these Yb structures on the MP are deprecated still returns no Yb structures.
After discussion with @Andrew-S-Rosen, we think this might have something to do with the recomputed Yb systems not making their way to the API.
Version
0.45.3 (mp-api)
Which OS?
- MacOS
- Windows
- Linux
Log output
['C', 'O', 'Yb']
Retrieving ThermoDoc documents: 100%|█████████████████████████████████████████████████| 105/105 [00:00<00:00, 4685126.81it/s]
Retrieving SummaryDoc documents: 100%|███████████████████████████████████████████████████| 19/19 [00:00<00:00, 866214.96it/s]
Pulled 19 total docs
mp-990424: C
mp-169: C
mp-2516584: C
mp-569304: C
mp-569416: C
mp-48: C
mp-606949: C
mp-1009490: O2
mp-12957: O2
mp-611836: O2
mp-723285: O2
mp-568286: C
mp-568363: C
mp-937760: C
mp-11725: CO2
mp-644607: CO2
mp-1190699: CO2
mp-20066: CO2
mp-1077906: CO2
Andrew-S-Rosen
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working