Package PyFoam :: Package Execution :: Module AnalyzedWatcher :: Class AnalyzedWatcher
[hide private]
[frames] | no frames]

Class AnalyzedWatcher

source code


Instance Methods [hide private]
 
__init__(self, filename, analyzer, silent=False, tailLength=1000, sleep=0.1)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from BasicWatcher.BasicWatcher
 
getSize(self)
Returns: the current size (in bytes) of the file
source code
 
lineHandle(self, line)
called every time a new line is read
source code
 
start(self)
Reads the file and does the processing
source code
 
startHandle(self)
to be called before the program is started
source code
 
stopHandle(self)
called after the program has stopped
source code
 
tailingHandle(self)
called when the first line is output
source code
    Inherited from AnalyzedCommon.AnalyzedCommon
 
addAnalyzer(self, name, analyzer) source code
 
addTrigger(self, time, func, once=True, until=None)
Adds a timed trigger to the Analyzer
source code
 
createPlots(self, persist=None, raiseit=False, splitThres=2048, plotLinear=True, plotCont=True, plotBound=True, plotIterations=True, plotCourant=True, plotExecution=True, plotDeltaT=True, start=None, end=None, writeFiles=False, customRegexp=None, plottingImplementation='dummy') source code
 
getAnalyzer(self, name) source code
 
getDirname(self)
Get the name of the directory where the data is written to
source code
 
getTime(self)
Get the execution time
source code
 
hasAnalyzer(self, name) source code
 
listAnalyzers(self)
Returns: A list with the names of the analyzers
source code
 
picklePlots(self, wait=False)
Writes the necessary information for the plots permanently to disc, so that it doesn't have to be generated again
source code
 
reset(self)
reset the analyzer
source code
 
setDataSet(self, data) source code
 
tearDown(self) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, analyzer, silent=False, tailLength=1000, sleep=0.1)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • analyzer - analyzer
  • filename - name of the logfile to watch
  • silent - if True no output is sent to stdout
  • tailLength - number of bytes at the end of the fail that should be output. Because data is output on a per-line-basis
  • sleep - interval to sleep if no line is returned
Overrides: object.__init__