PyFoam.LogAnalysis.PhaseChangerLineAnalyzer module

Analyzes lines with regular expressions and changes the phase if it fits

class PyFoam.LogAnalysis.PhaseChangerLineAnalyzer.PhaseChangerLineAnalyzer(exp, idNr=None)[source]

Bases: PyFoam.LogAnalysis.GeneralLineAnalyzer.GeneralLineAnalyzer

Parses lines for an arbitrary regular expression and sets the phase if it fits

__init__(exp, idNr=None)[source]
Parameters:
  • name – name of the expression (needed for output
  • exp – that holds the phase name
  • idNr – number of the pattern group that is used as the phase name
__module__ = 'PyFoam.LogAnalysis.PhaseChangerLineAnalyzer'
doAnalysis(line)[source]

Look for the pattern. If it matches set the phase name