xnn.ffnn.models.oplslib.resolve_dihedral_type#
- xnn.ffnn.models.oplslib.resolve_dihedral_type(dihedral_types, a, b, c, d)[source]#
Find the best dihedral-type key for the class quadruple.
Both atom orders are tried; among the keys that match (with
Xmatching any class), the one with the most non-wildcard positions wins, ties broken alphabetically for determinism. This is the usual exact- before-wildcard precedence of OPLS implementations.- Parameters:
- Returns:
The best matching key, or
None.- Return type:
str or None