Package PyFoam :: Package LogAnalysis :: Module TimeLineLineAnalyzer
[hide private]
[frames] | no frames]

Source Code for Module PyFoam.LogAnalysis.TimeLineLineAnalyzer

 1  """Line analyzer that collects datga in arrays""" 
 2   
 3  import re 
 4   
 5  # from LogLineAnalyzer import LogLineAnalyzer 
 6  # from PyFoam.Basics.TimeLineCollection import TimeLineCollection 
 7   
 8  from GeneralLineAnalyzer import GeneralLineAnalyzer 
 9   
10 -class TimeLineLineAnalyzer(GeneralLineAnalyzer):
11 """Base class for analyzers that collect data in arrays 12 13 Just a stub to enable legacy code"""
14 - def __init__(self):
15 GeneralLineAnalyzer.__init__(self,doTimelines=True)
16 17 ##class TimeLineLineAnalyzer(LogLineAnalyzer): 18 ## """Base class for analyzers that collect data in arrays""" 19 20 ## def __init__(self): 21 ## LogLineAnalyzer.__init__(self) 22 23 ## self.lines=TimeLineCollection() 24 25 ## def timeChanged(self): 26 ## """Sets the current time in the timelines""" 27 ## self.lines.setTime(self.getTime()) 28 29 ## def getTimeline(self,name): 30 ## """@param name: Name of the timeline to return 31 ## @return: the timeline as two list: the times and the values""" 32 ## return self.lines.getTimes(),self.lines.getValues(name) 33