Trees | Indices | Help |
|
---|
|
object --+ | Mopac2012TextParser
Parser for the MOPAC2012 .out and .aux files. Using decorators, the callback() function below populates the "callbacks" dictionary in this class with key-value pairs of the form (regex,func) where "regex" is a regular expression to catch patterns in the output file, and "func" is the callback function which is triggered when the regex is matched.
In this way, each specific callback is triggered by a given pattern such as 'HOMO LUMO ENERGIES \(EV\) =', and the callback function processes the matched lines.
Note that multiple regex's can be associated with a given callback function by associating it with two or more decorators. In this way, the same callback can be triggered multiple times. e.g. for both the .aux and .out files, perhaps for consistency checking etc.
Typically, however, only one regex is associated with each callback so that data for a given property is grepped from either the .out file OR the .aux file, but not both.
|
|||
|
|||
|
|||
Inherited from |
|
|||
callbacks = OrderedDict([(<_sre.SRE_Pattern object at 0xcf7e43
|
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
|
callbacks
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:51 2016 | http://epydoc.sourceforge.net |