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: PyFoam.LogAnalysis.LogLineAnalyzer.LogLineAnalyzer

Base class for analyzers that write data to files and store time-lines

Combines the capabilities of TimeLineLineAnalyzer and FileLineAnalyzer

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

doMatch(line)[source]
endAnalysis(match)[source]

Method at the end of a successfull match

static fName(n)[source]
getCurrentData(structured=False)[source]
getTimeline(name)[source]
Parameters:name – Name of the timeline to return
Returns:the timeline as two list: the times and the values
processProgressTemplate(data)[source]

Add progress information

setDirectory(oDir)[source]

Creates the OutFileCollection-object

setMaster(master)[source]
static setPhase(p='')[source]
setPublisher(publisher)[source]

Assign another line-analyzer that will do the actual data gathering

setTitles(titles)[source]

Sets the titles anew :param titles: the new titles

startAnalysis(match)[source]

Method at the start of a successfull match

stringToMatch(line)[source]

Returns string to match. To be overriden for multi-line expressions

tearDown()[source]

Closes files

timeChanged()[source]

Sets the current time in the timelines