Skip to content

Commit 8c2983d

Browse files
Chiu PeterChiu Peter
authored andcommitted
correct api endpoint, search_summary_docs is deprecated
1 parent 548c6fa commit 8c2983d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crystal_toolkit/components/search.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ def get_human_readable_results_from_search_term(search_term):
120120
fields = ["material_id", "formula_pretty", "energy_above_hull", "symmetry"]
121121
with MPRester() as mpr:
122122
try:
123-
entries = mpr.summary.search_summary_docs(
124-
formula=search_term, fields=fields
125-
)
123+
entries = mpr.summary.search(formula=search_term, fields=fields)
126124
except MPRestError:
127125
entries = []
128126

0 commit comments

Comments
 (0)