comparison python/sensors.py @ 1012:01db14e947e4

resolved
author Wendlasida
date Fri, 01 Jun 2018 10:47:49 -0400
parents 933670761a57
children
comparison
equal deleted inserted replaced
1011:4f0312bee393 1012:01db14e947e4
56 if len(instants) == 0: 56 if len(instants) == 0:
57 return False 57 return False
58 else: 58 else:
59 detectionInstants.append(mean(instants)) 59 detectionInstants.append(mean(instants))
60 result = True 60 result = True
61 for i in xrange(len(sensors)-1): 61 for i in range(len(sensors)-1):
62 result = result and (detectionInstants[i] <= detectionInstants[i+1]) 62 result = result and (detectionInstants[i] <= detectionInstants[i+1])
63 if not result: 63 if not result:
64 return result 64 return result
65 return result 65 return result