Skip to content

Commit 288b669

Browse files
committed
Update mp-api imports and bump version
1 parent 0ab5923 commit 288b669

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

crystal_toolkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
VolumetricData,
2121
)
2222

23-
__version__ = "2022.08.12"
23+
__version__ = "2022.08.19"
2424

2525
MODULE_PATH = Path(__file__).parents[0]
2626

crystal_toolkit/components/search.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
from dash.dependencies import Input, Output, State
77
from dash.exceptions import PreventUpdate
88
from monty.serialization import loadfn
9-
from mp_api import MPRester
10-
from mp_api.client import MPRestError
9+
from mp_api.client import MPRester, MPRestError
1110
from pymatgen.util.string import unicodeify, unicodeify_spacegroup
1211

1312
from crystal_toolkit import __file__ as module_path

crystal_toolkit/components/submit_snl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import requests
44
from dash.dependencies import Input, Output, State
55
from dash.exceptions import PreventUpdate
6-
from mp_api import MPRester
6+
from mp_api.client import MPRester
77
from pymatgen.core.structure import Structure
88
from pymatgen.util.provenance import StructureNL
99

crystal_toolkit/components/xas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def pattern_from_mpid(element, mpid, elements):
145145

146146
url_path = "/materials/" + mpid["mpid"] + "/xas/" + element
147147

148-
from mp_api.matproj import MPRester
148+
from mp_api.client import MPRester
149149

150150
with MPRester() as mpr:
151151
data = mpr._make_request(url_path) # querying MP database via MAPI

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "crystal_toolkit"
3-
version = "2022.08.12"
3+
version = "2022.08.19"
44
description = ""
55
authors = ["Matthew Horton <[email protected]>"]
66

0 commit comments

Comments
 (0)