xnn.common.data.hub.oc20.parse_extxyz#

xnn.common.data.hub.oc20.parse_extxyz(text)[source]#

Parse the frames of one OC20 S2EF .extxyz file.

Parameters:

text (str) – The decompressed file.

Returns:

(cell (3, 3), energy, Z (N,), pos (N, 3), fixed (N,), tags (N,), forces (N, 3)) per frame.

Return type:

list of tuple

Raises:

ValueError – If a frame does not have the OC20 S2EF columns.