pymatgen
pymatgen copied to clipboard
Add OPTIMADE adapter
Summary
This PR adds a converter between the pymatgen.core.Structure object and an OPTIMADE structure resource, migrated primarily out of https://github.com/Materials-Consortia/optimade-python-tools/blob/master/optimade/adapters/structures/pymatgen.py with the aim to remove it from our library.
Todos
- [ ] Finish off tests
- [ ] See if it can be used internally in the
pymatgen.ext.optimadeclient