PyFoam.LogAnalysis.GeneralLineAnalyzer module
Line analyzer with output and the capability to store lines
- class PyFoam.LogAnalysis.GeneralLineAnalyzer.GeneralLineAnalyzer(doTimelines=False, doFiles=False, titles=[], accumulation=None, singleFile=False, progressTemplate=None, plotIterations=False, startTime=None, endTime=None)[source]
Bases:
LogLineAnalyzerBase class for analyzers that write data to files and store time-lines
Combines the capabilities of TimeLineLineAnalyzer and FileLineAnalyzer
- __annotations__ = {}
- __init__(doTimelines=False, doFiles=False, titles=[], accumulation=None, singleFile=False, progressTemplate=None, plotIterations=False, startTime=None, endTime=None)[source]
- Parameters:
titles – The titles of the data elements
progressTemplate – Progress output to be reported
plotIterations – plot iterations instead of the real time
- __module__ = 'PyFoam.LogAnalysis.GeneralLineAnalyzer'
- __phase = ''
- addToFiles(match)[source]
Method that adds matched data to files
- Parameters:
match – data matched by a regular expression
- addToTimelines(match)[source]
Method that adds matched data to timelines
- Parameters:
match – data matched by a regular expression
- doAnalysis(line)[source]
General analysis method. Derived classes should instead override callbacks
- getCurrentData(structured=False)[source]
Give back the current analyzed data in a dictionary
To be overwritten by subclasses
- getTimeline(name)[source]
- Parameters:
name – Name of the timeline to return
- Returns:
the timeline as two list: the times and the values