comparison python/indicators.py @ 665:15e244d2a1b5

corrected bug with circular import for VideoFilenameAddable, moved to base module
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 20 May 2015 13:57:47 +0200
parents dc70d9e711f5
children fa9aa5f08210
comparison
equal deleted inserted replaced
664:455f9b93819c 665:15e244d2a1b5
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 '''Class for indicators, temporal indicators, and safety indicators''' 2 '''Class for indicators, temporal indicators, and safety indicators'''
3 3
4 __metaclass__ = type
5
6 import moving 4 import moving
7 5
6
8 # need for a class representing the indicators, their units, how to print them in graphs... 7 # need for a class representing the indicators, their units, how to print them in graphs...
9 class TemporalIndicator: 8 class TemporalIndicator(object):
10 '''Class for temporal indicators 9 '''Class for temporal indicators
11 i.e. indicators that take a value at specific instants 10 i.e. indicators that take a value at specific instants
12 11
13 values should be 12 values should be
14 * a dict, for the values at specific time instants 13 * a dict, for the values at specific time instants