pymatgen package

Subpackages

Module contents

get_structure_from_mp(formula)[source]

Convenience method to get a crystal from the Materials Project database via the API. Requires PMG_MAPI_KEY to be set.

Parameters:formula (str) – A formula
Returns:
(Structure) The lowest energy structure in Materials Project with that
formula.