schrodinger.infra.mminit module¶
A class to assist in initialization and termination of mmlibs.
-
class
schrodinger.infra.mminit.Initializer(initializers, terminators)¶ Bases:
objectA 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.
-
__copy__()¶
-
__deepcopy__(memo=None)¶
-
__class__¶ alias of
builtins.type
-
__delattr__¶ Implement delattr(self, name).
-
__dict__= mappingproxy({'__module__': 'schrodinger.infra.mminit', '__doc__': '\n A class to handle initialization and termination of needed mmlibs.\n\n It is designed to be created on import and initialize needed mmlibs for\n a module. In general, automatic termination is not supported, but terminate\n method can be called manually.\n\n ', '__init__': <function Initializer.__init__>, 'initialize': <function Initializer.initialize>, 'terminate': <function Initializer.terminate>, '__copy__': <function Initializer.__copy__>, '__deepcopy__': <function Initializer.__deepcopy__>, '__dict__': <attribute '__dict__' of 'Initializer' objects>, '__weakref__': <attribute '__weakref__' of 'Initializer' objects>})¶
-
__dir__() → list¶ default dir() implementation
-
__eq__¶ Return self==value.
-
__format__()¶ default object formatter
-
__ge__¶ Return self>=value.
-
__getattribute__¶ Return getattr(self, name).
-
__gt__¶ Return self>value.
-
__hash__¶ Return hash(self).
-
__init_subclass__()¶ This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
-
__le__¶ Return self<=value.
-
__lt__¶ Return self<value.
-
__module__= 'schrodinger.infra.mminit'¶
-
__ne__¶ Return self!=value.
-
__new__()¶ Create and return a new object. See help(type) for accurate signature.
-
__reduce__()¶ helper for pickle
-
__reduce_ex__()¶ helper for pickle
-
__repr__¶ Return repr(self).
-
__setattr__¶ Implement setattr(self, name, value).
-
__sizeof__() → int¶ size of object in memory, in bytes
-
__str__¶ Return str(self).
-
__subclasshook__()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
__weakref__¶ list of weak references to the object (if defined)
-