PyFoam.LogAnalysis.NameFinderLineAnalyzer module

A line analyzer that generates a list of names

class PyFoam.LogAnalysis.NameFinderLineAnalyzer.NameFinderLineAnalyzer(trigger, analyze, idNr=1, nr=1)[source]

Bases: PyFoam.LogAnalysis.ContextLineAnalyzer.ContextLineAnalyzer

Class that finds names depending on a context

__init__(trigger, analyze, idNr=1, nr=1)[source]
Parameters
  • trigger – The regular expression that has to match before data is collected

  • nr – The number of lines after the match that data is collected

  • analyze – The regular expression that is used for analysis

  • idNr – The id of the group that is used for analysis

__module__ = 'PyFoam.LogAnalysis.NameFinderLineAnalyzer'
callOnChange()[source]

To be called if the name list changes

doActualAnalysis(line)[source]

Called nr lines after the match

Parameters

line – The line that should be analyzed