PyFoam.LogAnalysis.ContextLineAnalyzer module

Line analyzer that finds data n lines after a matching line

class PyFoam.LogAnalysis.ContextLineAnalyzer.ContextLineAnalyzer(trigger, nr=1)[source]

Bases: PyFoam.LogAnalysis.LogLineAnalyzer.LogLineAnalyzer

Base class for analyzers that work with a context

callOnMatch(m)[source]

Called if the line matches

Parameters:m – The match-object
doActualAnalysis(line)[source]

Called nr lines after the match

Parameters:line – The line that should be analyzed
doAnalysis(line)[source]