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 | |||
|
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.
|
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.
|
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.
|
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 in the main input file. The internal state of this class is updated and a new input file is written in the CWD (over-writing the old one if present). Useful to clean up the input file when all the files are in the CWD. |
Parse line of text for keyword=value and store it. Ignore comment lines starting with #
|
|
keywords
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:48 2016 | http://epydoc.sourceforge.net |