Package schrodinger :: Package analysis :: Package visanalysis :: Module volumedataio :: Class _MMVol
[hide private]
[frames] | no frames]

Class _MMVol

object --+
         |
        _MMVol

The _MMVol class acts as a wrapper around low-level MMVol objects. The class implements Python's context-manager interface to ensure that we don't 'leak' MMVol objects in the event of an error.

Instance Methods [hide private]
 
__init__(self, mmvol=None)
This function creates a new _MMVol object.
 
__enter__(self)
Called by the context-manager as part of a 'with' statement.
 
__exit__(self, type, value, traceback)
Called by the context manager as part of a 'with' statement.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mmvol=None)
(Constructor)

 

This function creates a new _MMVol object. It either explicitly instantiates a MMVol object, or assumes control of the object passed via mmvol.

Parameters:
  • mmvol (MMVol handle) - A valid MMVol handle, if specified
Overrides: object.__init__