Skip to content

Commit

Permalink
use query_contributions for ion ref data
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 13, 2022
1 parent bebe77b commit 15c378b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions mp_api/client/mprester.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,17 +706,11 @@ def get_ion_reference_data(self) -> List[Dict]:
'reference': 'H. E. Barner and R. V. Scheuerman, Handbook of thermochemical data for
compounds and aqueous species, Wiley, New York (1978)'}}
"""

ion_data = [
d
for d in self.contribs.contributions.get_entries(
project="ion_ref_data",
fields=["identifier", "formula", "data"],
per_page=500,
).result()["data"]
]

return ion_data
return self.contribs.query_contributions(
query={"project": "ion_ref_data"},
fields=["identifier", "formula", "data"],
paginate=True
).get("data")

def get_ion_reference_data_for_chemsys(self, chemsys: Union[str, List]) -> List[Dict]:
"""
Expand Down

0 comments on commit 15c378b

Please sign in to comment.