diffsims icon indicating copy to clipboard operation
diffsims copied to clipboard

Allow ions instead of atoms in CIF files

Open DorianDepriester opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. In some CIF files, atoms are given by their ionic names (e.g. Fe2+ instead of Fe). This is (sometimes) the case for generated files from The Materials Project. This actually results in failure of get_element_id_from_string().

Describe the solution you'd like A simple regexp to automatically trim the atom names.

Describe alternatives you've considered The user can edit the CIF file to remove the exponents.

DorianDepriester avatar Jun 21 '24 09:06 DorianDepriester