parse_cif_cod_tools

emmet.core.connectors.analysis.parse_cif_cod_tools(cif_str, verbose=False, cif_parser=None)

Parse a CIF with the COD tools parser.

Return type:

tuple[list[Structure | None], list[str]]

Parameters:
  • cif_str (str)

  • verbose (bool)

  • cif_parser (CifParser | None)

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.

cif_parserpymatgen.io.cif.CifParser or None (default)

Existing instance of a CifParser to use

Returns

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