xnn.ffnn.models.ffield.read_ffield#
- xnn.ffnn.models.ffield.read_ffield(path)[source]#
Read a ReaxFF parameter library.
- Parameters:
path (str or Path) – Either a
.jsonfile (a ReaxFF-nn library, possibly with network weights, or one written byFFieldLibrary.save()), or a.frcforce-field spec understood byfind_forcefield(): a field shipped with xnn by name ("CHO_cho_2008","reaxff/CHO_cho_2008"), a.frcpath, or"<path>.frc:<variant>".- Returns:
The parsed library.
- Return type:
- Raises:
FileNotFoundError – If the spec matches nothing.