Package schrodinger :: Package application :: Package desmond :: Module feputils :: Class OPLSSettingManager
[hide private]
[frames] | no frames]

Class OPLSSettingManager

object --+
         |
        OPLSSettingManager

Simple context manager to modify and restore user's OPLS_DIR setting, if appropriate.

This is really unfortunate and fiddly. We can delete this context manager once FFLD-1053 is complete.

Instance Methods [hide private]
 
__init__(self, selected_opls_dir, opls_ver)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__enter__(self)
Modify the OPLS_DIR value in the user's environment, if appropriate
 
__exit__(self, type, value, traceback)
Restore the OPLS_DIR value in the user's environment, if appropriate

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

Class Variables [hide private]
  OPLS_DIR = "OPLS_DIR"
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, selected_opls_dir, opls_ver)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • selected_opls_dir (str) - path of the selected_opls_dir, if any
  • opls_ver (int) - The opls_version
Overrides: object.__init__