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(error_handler=None)

Initialize all needed mmlibs.

terminate()

Terminate all previously initialized mmlibs.

schrodinger.infra.mminit.MMLib(init, term, new=None, delete=None)

Decorator and context manager to control initialization of a single library.

schrodinger.infra.mminit.mmct(new=None, delete=None)

Decorator and context manager to control initialization of a single library.

schrodinger.infra.mminit.mmfrag()

Decorator and context manager to control initialization of a single library.