xnn.ffnn.models.oplslib.read_opls#
- xnn.ffnn.models.oplslib.read_opls(source, strict=True)[source]#
Read an OPLS parameter library.
- Parameters:
source (str or Path) – A
.jsonfile in the native format, or a.frcforce-field spec understood byfind_forcefield(): a variant shipped with xnn by name ("oplsaa","oplsaa-1996","lopls","CL&P","oplsaa+"), a.frcpath, or"<path>.frc:<variant>".strict (bool, optional) – See
from_forcefield().
- Returns:
The parsed library.
- Return type: