schrodinger.infra.mminit module¶
Assist in initialization and termination of mmlibs.
-
class
schrodinger.infra.mminit.
Initializer
(initializers, terminators)¶ Bases:
object
A class to handle initialization and termination of needed mmlibs.
It is designed to be created on import and initialize needed mmlibs for a module. In general, automatic termination is not supported, but terminate method can be called manually.
-
__init__
(initializers, terminators)¶ Initialize self. See help(type(self)) for accurate signature.
-
initialize
(error_handler=None)¶ Initialize all needed mmlibs.
-
terminate
()¶ Terminate all previously initialized mmlibs.
-
-
schrodinger.infra.mminit.
MMLib
(init, term)¶ Decorator and context manager to control initialization of a single library.