Package schrodinger :: Package application :: Package jaguar :: Module input :: Class GenOptions
[hide private]
[frames] | no frames]

Class GenOptions

object --+
         |
        GenOptions


A class to convert keyword value pairs defined in a single string into a
data structure, and allow them to be converted back into a string.

Here are some example strings:
    'igeopt=1 mp2=3'
    'igeopt=1 maxitg=1 iacc=1'

Instance Methods [hide private]
 
__init__(self, kwdict=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__setitem__(self, key, value)
 
__getitem__(self, key)
 
_getKeywordValuePairs(self)
 
toString(self)
 
commandLineOptions(self)
 
isEquivalent(self, other)

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

Static Methods [hide private]
 
_splitString(string)
 
fromString(string)
Create a GenOptions instance from the provided string.
 
testString(string, gen_options=None)
Test the state of the provided string.
Class Variables [hide private]
  eq_re = re.compile(r'\s*=\s*')
  ERROR = 2
  OK = 0
hash(x)
  PARTIAL = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, kwdict=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

testString(string, gen_options=None)
Static Method

 

Test the state of the provided string. If gen_options is provided,
set its values based on the keyword value pairs in the string.

Parameters

string (str)
    Input string to read for settings.

gen_options (GenOptions)
    A gen_options instance to modify according to the values in
    'string'.