PyFoam.LogAnalysis.RegExpLineAnalyzer module¶
Analyzes lines with regular expressions
-
class
PyFoam.LogAnalysis.RegExpLineAnalyzer.
RegExpLineAnalyzer
(name, exp, idNr=None, dataTransformations=None, stringValues=None, titles=[], doTimelines=False, doFiles=True, accumulation=None, progressTemplate=None, singleFile=False, startTime=None, endTime=None)[source]¶ Bases:
PyFoam.LogAnalysis.GeneralLineAnalyzer.GeneralLineAnalyzer
Parses lines for an arbitrary regular expression
Only one data-set is stored per time-step
One pattern group of the RegExp can be used as a unique identifier, so that more than one data-sets can be stored per time-step
The string %f% in the regular expression is replaced with the regular expression for a floating point number
-
__init__
(name, exp, idNr=None, dataTransformations=None, stringValues=None, titles=[], doTimelines=False, doFiles=True, accumulation=None, progressTemplate=None, singleFile=False, startTime=None, endTime=None)[source]¶ Parameters: - name – name of the expression (needed for output
- exp – the regular expression, %f% will be replaced with the
regular expression for a float :param idNr: number of the pattern group that is used as an identifier :param titles: titles of the columns :param dataTransformations: List of expression strings with replacement values of the form “$1”, “$2” which are replaced with the groups of the regular expression. If this is set the original data is discarded and the values when inserting them to the replacements are used :param accumulation: How multiple values should be accumulated
-
__module__
= 'PyFoam.LogAnalysis.RegExpLineAnalyzer'¶
-
addToFiles
(match)[source]¶ Method that adds matched data to files
Parameters: match – data matched by a regular expression
-
-
class
PyFoam.LogAnalysis.RegExpLineAnalyzer.
RegExpTimeLineLineAnalyzer
(name, exp, titles=[], startTime=None, endTime=None)[source]¶ Bases:
PyFoam.LogAnalysis.RegExpLineAnalyzer.RegExpLineAnalyzer
Class that stores results as timelines, too
-
__init__
(name, exp, titles=[], startTime=None, endTime=None)[source]¶ Parameters: - name – name of the expression (needed for output
- exp – the regular expression, %f% will be replaced with the
regular expression for a float :param titles: titles of the columns
-
__module__
= 'PyFoam.LogAnalysis.RegExpLineAnalyzer'¶
-