Looks like mp-186 has BS but no DOS. Is this just the result of a wf with failed NSCF uniform job while line mode succeeded? Or something else?
Script to reproduce
from mp_api.client import MPRester
from mp_api.client.core.exceptions import MPRestError
MPID = "mp-186"
with MPRester() as mpr:
# 1. the summary doc's has_props flags: bandstructure yes, dos no
props = mpr.materials.summary.search(material_ids=[MPID], fields=["has_props"])[0].has_props
print(f"{MPID} has_props: bandstructure={props['bandstructure']}, dos={props['dos']}")
# 2. estructure doc shows bs is present, es.dos is not
es = mpr.materials.electronic_structure.search(
material_ids=[MPID], fields=["bandstructure", "dos"]
)[0]
print(f" electronic_structure.bandstructure = {'present' if es.bandstructure else None}")
print(f" electronic_structure.dos = {es.dos}")
# 3. so actually asking for the DOS object fails
mpr.get_dos_by_material_id(MPID)
Output is
Retrieving SummaryDoc documents: 100%|████████████████████████████████████████████████| 1/1 [00:00<00:00, 17476.27it/s]
mp-186 has_props: bandstructure=True, dos=False
Retrieving ElectronicStructureDoc documents: 100%|████████████████████████████████████| 1/1 [00:00<00:00, 33026.02it/s]
electronic_structure.bandstructure = present
electronic_structure.dos = None
Retrieving ElectronicStructureDoc documents: 100%|████████████████████████████████████| 1/1 [00:00<00:00, 38479.85it/s]
Traceback (most recent call last):
File "/Users/ardunn/Downloads/tmp/mp186_no_dos.py", line 32, in <module>
mpr.get_dos_by_material_id(MPID)
File "/Users/ardunn/Downloads/tmp/.venv/lib/python3.11/site-packages/mp_api/client/mprester.py", line 1293, in get_dos_by_material_id
return self.materials.electronic_structure_dos.get_dos_from_material_id(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ardunn/Downloads/tmp/.venv/lib/python3.11/site-packages/mp_api/client/routes/materials/electronic_structure.py", line 598, in get_dos_from_material_id
raise MPRestError(f"No density of states data found for {material_id}")
mp_api.client.core.exceptions.MPRestError: No density of states data found for mp-186
Dependencies were:
# "mp-api==0.46.5",
# "pymatgen==2026.5.4",