xnn.ffnn.models.dreidinglib.read_dreiding#
- xnn.ffnn.models.dreidinglib.read_dreiding(spec='dreiding')[source]#
Read a DREIDING library from a
.frcvariant or a native JSON.- Parameters:
spec (str or Path, optional) –
"dreiding"(the shipped Lennard-Jones variant, the default),"dreiding/X6"(the shipped exponential-6 variant), a.frcpath ("file.frc:variant"to pick one of several), or a native JSON path written byDreidingLibrary.save().- Returns:
The library.
- Return type:
- Raises:
ValueError – If the resolved force field is not of the DREIDING form.