Skip to content

Commit 433f4e5

Browse files
authored
Merge branch 'main' into update_api_notebook
2 parents b824394 + 3247aa2 commit 433f4e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notebooks/download_from_api.ipynb

+4-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@
138138
"source": [
139139
"from pymatgen.ext.matproj import MPRester\n",
140140
"with MPRester(API_KEY) as mpr:\n",
141-
" hexagonal_materials = mpr.summary.search(crystal_system=\"Hexagonal\", is_stable=True, fields=[\"material_id\"])"
141+
" hexagonal_materials = mpr.summary.search(crystal_system=\"Hexagonal\", \n",
142+
" is_stable=True,\n",
143+
" has_props=[HasProps.charge_density], \n",
144+
" fields=[\"material_id\"])"
142145
]
143146
},
144147
{

0 commit comments

Comments
 (0)