coflandscaper.parse_cell

coflandscaper.parse_cell(text)[source]

Parse unit-cell lengths and angles from CIF text.

Parameters:

text (str) – Full CIF text.

Returns:

Dictionary with keys a, b, c, alpha, beta, and gamma.

Raises:

ValueError – If any required cell parameter is missing.

Return type:

dict[str, float]