Skip to main content

parse_cif

Function parse_cif 

Source
pub fn parse_cif(input: &str) -> Result<CifStructure, String>
Expand description

Parse a CIF-format string into a crystal structure.

Handles standard CIF 1.1 tags for cell parameters, space group, and atom sites. Numbers with uncertainty notation (e.g., “5.640(1)”) are stripped of the parenthetical.