henniggroup / MPInterfaces

Python package that enables high throughput analysis of interfaces(two dimensional materials, hetero-structures, nanoparticles with and without ligands/solvents).
http://henniggroup.github.io/MPInterfaces/
MIT License
71 stars 48 forks source link

Compatibility of instrument.py with newer pymatgen versions #5

Closed marcoesters closed 7 years ago

marcoesters commented 7 years ago

In pymatgen 4, DictVaspInputSet is called DictSet, so the import in line 20 raises an Import Error. Using a try-except structure fixes the import error while maintaining backwards compatibility with pymatgen 3.