File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 53
53
"metadata" : {},
54
54
"outputs" : [],
55
55
"source" : [
56
- " from mp_api import MPRester\n " ,
56
+ " from mp_api.client import MPRester\n " ,
57
57
" with MPRester(API_KEY) as mpr:\n " ,
58
58
" chgcar = mpr.get_charge_density_from_material_id(\" mp-149\" )\n " ,
59
59
" type(chgcar)"
137
137
"metadata" : {},
138
138
"outputs" : [],
139
139
"source" : [
140
- " from mp_api import MPRester\n " ,
140
+ " from mp_api.client import MPRester\n " ,
141
+ " from emmet.core.summary import HasProps\n " ,
142
+ " \n " ,
141
143
" with MPRester(API_KEY) as mpr:\n " ,
142
- " hexagonal_materials = mpr.summary.search(crystal_system=\" Hexagonal\" , is_stable=True, fields=[\" material_id\" ])"
144
+ " hexagonal_materials = mpr.summary.search(crystal_system=\" Hexagonal\" , \n " ,
145
+ " is_stable=True,\n " ,
146
+ " has_props=[HasProps.charge_density], \n " ,
147
+ " fields=[\" material_id\" ])"
143
148
]
144
149
},
145
150
{
You can’t perform that action at this time.
0 commit comments