xnn.ffnn.models.topology.read_topology#

xnn.ffnn.models.topology.read_topology(path)[source]#

Read a topology JSON file written by MolecularTopology.save().

Only the independent information (types, bonds, impropers) is stored on disk; the derived lists are rebuilt on load.

Parameters:

path (str or Path) – The JSON file.

Returns:

The loaded topology.

Return type:

MolecularTopology