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

Source Code for Module PyFoam.Execution.StepAnalyzedWatcher

 1  """An Analyzed Runner that does something at every time-step""" 
 2   
 3  from BasicWatcher import BasicWatcher 
 4  from StepAnalyzedCommon import StepAnalyzedCommon 
 5   
 6  from time import time 
 7   
8 -class StepAnalyzedWatcher(StepAnalyzedCommon,BasicWatcher):
9 """The output of a command is analyzed while being run. At every time-step a command is performed""" 10
11 - def __init__(self,filename,analyzer,silent=False,smallestFreq=0.):
12 """@param smallestFreq: the smallest intervall of real time (in seconds) that the time change is honored""" 13 BasicWatcher.__init__(self,filename,silent=silent,tailLength=tailLength,sleep=sleep) 14 StepAnalyzedCommon.__init__(self,logname,analyzer,smallestFreq=smallestFreq)
15