- class openff.nagl.toolkits.registry.NAGLToolkitRegistry(toolkit_precedence: List[NAGLToolkitWrapperMeta | NAGLToolkitWrapperBase | str] | None = None, exception_if_unavailable: bool = True, _register_imported_toolkit_wrappers: bool = False)[source]
Bases:
ToolkitRegistry
Methods
Append a ToolkitWrapper onto the list of toolkits in this ToolkitRegistry
Remove a ToolkitWrapper from the list of toolkits in this ToolkitRegistry
- add_toolkit(toolkit_wrapper: NAGLToolkitWrapperMeta | NAGLToolkitWrapperBase | str)[source]
Append a ToolkitWrapper onto the list of toolkits in this ToolkitRegistry
Warning
This API is experimental and subject to change.
- Parameters:
toolkit_wrapper (
openff.toolkit.utils.ToolkitWrapper
) – The ToolkitWrapper object to add to the list of registered toolkits- Raises:
InvalidToolkitError – If toolkit_wrapper is not a ToolkitWrapper or subclass
- deregister_toolkit(toolkit_wrapper: NAGLToolkitWrapperMeta | NAGLToolkitWrapperBase | str)[source]
Remove a ToolkitWrapper from the list of toolkits in this ToolkitRegistry
Warning
This API is experimental and subject to change.
- Parameters:
toolkit_wrapper (
instance
orsubclass
ofToolkitWrapper
) – The toolkit wrapper to remove from the registry- Raises:
InvalidToolkitError – If toolkit_wrapper is not a ToolkitWrapper or subclass
ToolkitUnavailableException – If toolkit_wrapper is not found in the registry