Skip to content

Commit 30698aa

Browse files
authored
Merge pull request #104 from munrojm/update_api_notebook
Update pymatgen req and api notebook
2 parents 3247aa2 + 433f4e5 commit 30698aa

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

notebooks/download_from_api.ipynb

+2-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"Then you should install the following two packages:\n",
4040
"\n",
4141
"```\n",
42-
"pip install -U mp-api\n",
4342
"pip install -U mp-pyrho\n",
4443
"```\n",
4544
"\n",
@@ -53,7 +52,7 @@
5352
"metadata": {},
5453
"outputs": [],
5554
"source": [
56-
"from mp_api.client import MPRester\n",
55+
"from pymatgen.ext.matproj import MPRester\n",
5756
"with MPRester(API_KEY) as mpr:\n",
5857
" chgcar = mpr.get_charge_density_from_material_id(\"mp-149\")\n",
5958
"type(chgcar)"
@@ -137,9 +136,7 @@
137136
"metadata": {},
138137
"outputs": [],
139138
"source": [
140-
"from mp_api.client import MPRester\n",
141-
"from emmet.core.summary import HasProps\n",
142-
"\n",
139+
"from pymatgen.ext.matproj import MPRester\n",
143140
"with MPRester(API_KEY) as mpr:\n",
144141
" hexagonal_materials = mpr.summary.search(crystal_system=\"Hexagonal\", \n",
145142
" is_stable=True,\n",

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616
]
1717
authors = [{name = "Jimmy-Xuan Shen", email = "[email protected]"}]
1818
dependencies = [
19-
'pymatgen>=2022.3.22',
19+
'pymatgen>=2022.9.21',
2020
]
2121

2222
description = "Tools for re-griding periodic volumetric quantum chemistry data for machine-learning purposes."
@@ -46,7 +46,7 @@ tests = [
4646
"hypothesis==6.40.1",
4747
]
4848
strict = [
49-
"pymatgen==2022.7.19",
49+
"pymatgen==2022.9.21",
5050
]
5151

5252
[project.urls]

0 commit comments

Comments
 (0)