schrodinger.application.jaguar.mmjag module

Convenience classes/functions for working with mmjag

MmJag provides a wrapper to the C mmjag functions. MMJagManager provides a context manager and mmjag_function a decorator for initializing/terminating mmjag

class schrodinger.application.jaguar.mmjag.MmJag(handle)

Bases: schrodinger.infra.mmobject.MmObject

A reference counting class for dealing with mmjag handles.

__init__(handle)

Initialize an object with an existing MM handle - i.e. one created with direct calls to the mmlibs.

By default, the MM resources will be managed by the object. To keep these from being cleaned up on object deletion, set manage_handle=False.

static initialize(error_handler=None)
static terminate()
class schrodinger.application.jaguar.mmjag.MMJagManager(handler=- 1)

Bases: object

__init__(handler=- 1)
schrodinger.application.jaguar.mmjag.mmjag_function(func)

A decorator that wraps functions with mmjag_initialize and mmjag_terminate.