Hi, as a quick follow up I tried running this cohesive short script in mybinder.org by modifying one of the Jupyter notebooks. It worked fine but I realized I was actually modifying the main notebook so tried to follow the steps. I forked the github and made my own binder:
When I run one of the pre made notebooks in there it works fine, but when I modify it for my cohesive script it no longer works. I get the error:
TypeError Traceback (most recent call last)
in
3 # Alternatively, you will need to supply the API key as an arg to MPRester.
4 mpr = MPRester(âxptfS7B0XQq3cO1Râ)
----> 5 mpr.get_cohesive_energy(âmp-721988â, per_atom=True)
/srv/conda/envs/notebook/lib/python3.7/site-packages/pymatgen/ext/matproj.py in get_cohesive_energy(self, material_id, per_atom)
1315 Cohesive energy (eV).
1316 ââ"
â 1317 entry = self.get_entry_by_material_id(material_id)
1318 ebulk = entry.energy / entry.composition.get_integer_formula_and_factor()[1]
1319 comp_dict = entry.composition.reduced_composition.as_dict()
/srv/conda/envs/notebook/lib/python3.7/site-packages/pymatgen/ext/matproj.py in get_entry_by_material_id(self, material_id, compatible_only, inc_structure, property_data, conventional_unit_cell)
752 inc_structure=inc_structure,
753 property_data=property_data,
â 754 conventional_unit_cell=conventional_unit_cell,
755 )
756 return data[0]
/srv/conda/envs/notebook/lib/python3.7/site-packages/pymatgen/ext/matproj.py in get_entries(self, chemsys_formula_id_criteria, compatible_only, inc_structure, property_data, conventional_unit_cell, sort_by_e_above_hull)
568 with warnings.catch_warnings():
569 warnings.filterwarnings(âignoreâ, message=âFailed to guess oxidation states.*â)
â 570 entries = MaterialsProject2020Compatibility().process_entries(entries, clean=True)
571 if sort_by_e_above_hull:
572 entries = sorted(entries, key=lambda entry: entry.data[âe_above_hullâ])
/srv/conda/envs/notebook/lib/python3.7/site-packages/pymatgen/entries/compatibility.py in process_entries(self, entries, clean, verbose)
557 processed_entry_list = []
558
â 559 for entry in PBar(entries, disable=(not verbose)):
560 ignore_entry = False
561 # if clean is True, remove all previous adjustments from the entry
TypeError: init() got an unexpected keyword argument âdisableâ