[Bug]: MPRester(use_docment_model=False).get_prop_by_material_id()
does not work when use_document_model=False
(prop = ['bandstructure', 'dos'])
#923
Labels
bug
Something isn't working
Code snippet
What happened?
I am attempting to get the bandstructure of a material using the convenience method
get_bandstructure_by_material_id
. When I passuse_document_model=False
, I get the following error:TypeError: 'MPDataDoc' object is not subscriptable
When I run the same search but with
use_document_model=True
, the bandstructure is returned with no errors.This issue is also present with other properties:
get_dos_by_material_id
get_bandstructure_by_material_id
I have no issues when trying to obtain phonon properties through either
get_phonon_dos_by_material_id
orget_phonon_bandstructure_by_material_id
, which may mean the issue is related to the electronic_structure route.Version
0.41.2
Which OS?
Log output
The text was updated successfully, but these errors were encountered: