Python version
3.12
Pymatgen version
2025.10.7
Operating system version
No response
Current behavior
The Pymatgen CIF parser cannot properly parse CIFs where the pdb formatting flags are used. Most parsers can't, although the official CCDC Mercury GUI can. This is a horrible format, and I'm not suggesting someone waste their time to fix it, but I'm reporting it anyway.
demo.cif.txt
from pymatgen.core import Structure
s = Structure.from_file('demo.cif')
Expected Behavior
CIF should be parsed.
Minimal example
Relevant files to reproduce this bug
No response
Python version
3.12
Pymatgen version
2025.10.7
Operating system version
No response
Current behavior
The Pymatgen CIF parser cannot properly parse CIFs where the pdb formatting flags are used. Most parsers can't, although the official CCDC Mercury GUI can. This is a horrible format, and I'm not suggesting someone waste their time to fix it, but I'm reporting it anyway.
demo.cif.txt
Expected Behavior
CIF should be parsed.
Minimal example
Relevant files to reproduce this bug
No response