Skip to content

Commit

Permalink
Fix MPRester import in core client (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Apr 4, 2022
1 parent 32c45ba commit 46d83aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mp_api/core/client.py
Expand Up @@ -751,7 +751,7 @@ def get_data_by_id(
if self.primary_key == "material_id":
# see if the material_id has changed, perhaps a task_id was supplied
# this should likely be re-thought
from mp_api.matproj import MPRester
from mp_api import MPRester

with MPRester(api_key=self.api_key, endpoint=self.base_endpoint) as mpr:
new_document_id = mpr.get_materials_id_from_task_id(document_id)
Expand Down

0 comments on commit 46d83aa

Please sign in to comment.