matminer
matminer copied to clipboard
Update thermo.py
Summary
The original code only works on legacy materials API which .get_data method can be used. The new materials API using .summary.search method and returns objects. Now the code is modified to handle both the new and old materials project API. Depending on the API key length, the MPRester class in pymatgen will automatically chose the old or new API to query.