comparison python/moving.py @ 68:846fa9dc47de

empty method for indicators
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 08 Nov 2010 12:20:52 -0500
parents ded58c424783
children cc192d0450b3
comparison
equal deleted inserted replaced
67:ded58c424783 68:846fa9dc47de
380 380
381 def __init__(self, name, values, timeInterval=None): 381 def __init__(self, name, values, timeInterval=None):
382 self.name = name 382 self.name = name
383 self.values = values 383 self.values = values
384 self.timeInterval = timeInterval 384 self.timeInterval = timeInterval
385
386 def empty(self):
387 return len(self.values) == 0
385 388
386 class SeverityIndicator(TemporalIndicator): 389 class SeverityIndicator(TemporalIndicator):
387 '''Class for severity indicators 390 '''Class for severity indicators
388 field mostSevereIsMax is True 391 field mostSevereIsMax is True
389 if the most severe value taken by the indicator is the maximum''' 392 if the most severe value taken by the indicator is the maximum'''