| Trees | Indices | Help |
|
|---|
|
|
object --+
|
ReactiqInput
A class to completely specify a Reactiq calculation.
Example usage:
input = ReactiqInput()
# Set user-defined values
input.setValue('integerKW', 3)
input.setValue('floatKW', '7.0')
input.setValue('stringKW', 'foo')
# Print all keyword/value pairs.
for keyword in input:
print "keyword '%s' has value %s" % (keyword, input[keyword])
# Handling the case of trying to set an unsupported keyword
try:
input['mykeyword'] = 'value'
except ReactiqKeywordException as e:
print e.allowed_keywords
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
| keywords | |||
|
values Support access to ReactiqKeyword values via attribute syntax. |
|||
|
|||
Create a ReactiqInput instance. If a keyword is specified in both 'inputfile' and 'keywords', then the values in 'keywords' will be set preferrentially. This also applies to 'jaguar_keywords'.
|
Return the value for Reactiq keyword 'key'. The return type depends on the keyword.
|
Set the Reactiq keyword 'key' to value 'value'. Note that there may be type-checking and conversion by the ReactiqKeyword class. If 'value' is None, the keyword will be reset.
|
Return the value for Reactiq keyword 'key'. The return type depends on the keyword.
|
Set the Reactiq keyword 'key' to value 'value'. Note that there may be type-checking and conversion by the ReactiqKeyword class. If 'value' is None, the keyword will be reset.
|
Set multiple Reactiq keywords.
|
Return the value for Jaguar keyword 'key'. The return type depends on the keyword.
|
Set the Jaguar &gen section keyword 'key' to value 'value'.
|
Set multiple Jaguar &gen section keywords.
|
Add a few defaults for Jaguar that are specific to AutoTS.
|
Reset keyword to default state.
|
Return the default value for Reactiq keyword 'key'. The return type depends on the keyword.
|
Has the specified key been set to a non-default value?
|
Return list of reactants. If no file(s) found, return empty list.
|
Return list of products. If no file(s) found, return empty list.
|
Return Reactant Complex. If no file found, return NoneType.
|
Return Product Complex. If no file found, return NoneType.
|
Return Reference Reactant Complex. If no file found, return NoneType.
|
Return Reference Product Complex. If no file found, return NoneType.
|
Perform a self-consistency check of all currently set keywords. @raise ReactiqKeywordConflictError if conflicting values found @raise ReactiqConservationError if matter not conserved |
Perform a check to ensure that matter is conserved and that charge/multiplicity are consistent with structures. A ReactiqConservationError is raised if any test fails. |
Create a Reactiq input file called 'name' in the current working directory based on this class instance. Only write the non-default keyword values.
|
Set the attribute jobname.
|
Read an existing Reactiq input file.
Any keywords specified in the input file will override
existing values in this ReactiqInput instance.
Jaguar &gen section keywords are defined like:
&JaguarKeywords
key=val
key=val
...
&
@type inputfile: str
@param inputfile: Path to a Reactiq input file
|
Remove full paths from file specifications. A new input file is no longer written, if that is desired the user must call the save method. |
Update full paths for file specifications to reflect the CWD. This is useful if running this job in a subdirectory or on a remote host. |
Parse line of text for keyword=value and store it. Ignore comment lines starting with #
|
|
|||
keywords
|
values
Support access to ReactiqKeyword values via attribute syntax.
e.g.
ri = ReactiqInput()
print ri.values.optimize # print 'optimize' keyword value
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jan 25 01:17:58 2017 | http://epydoc.sourceforge.net |