parse_cif

emmet.core.connectors.analysis.parse_cif(cif_str, verbose=False)

Parse a CIF string and apply sanity checks.

Return type:

tuple[list[Structure], list[str]]

Parameters:
  • cif_str (str)

  • verbose (bool)

Parameters

cif_strstr

The CIF string to parse

verbosebool = False

Whether to pass error messages from pymatgen and CIF parsing tools. Defaults to suppressing these messages.

Returns

List of Structure if parsing is successful List of str documenting any parsing issues