pwtools.parse.CifFile.cif_clear_atom_symbol

CifFile.cif_clear_atom_symbol(st, rex=re.compile('([a-zA-Z]+)([0-9+-]*)'))[source]

Remove digits and “+,-” from atom names.

Examples

>>> cif_clear_atom_symbol('Al1')
'Al'