Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/indicators.py @ 1267:ad60e5adf084
cleaned interaction categorization and added stationary category
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 29 May 2024 09:52:42 -0400 |
parents | 0f5bebd62a55 |
children |
comparison
equal
deleted
inserted
replaced
1266:ebb18043616e | 1267:ad60e5adf084 |
---|---|
82 else: | 82 else: |
83 return [x for x in result if x is not None] | 83 return [x for x in result if x is not None] |
84 | 84 |
85 def getInstants(self): | 85 def getInstants(self): |
86 return list(self.values.keys()) | 86 return list(self.values.keys()) |
87 | |
88 def existsAtInstant(self, instant): | |
89 return instant in self.values | |
87 | 90 |
88 def plot(self, options = '', xfactor = 1., yfactor = 1., timeShift = 0, **kwargs): | 91 def plot(self, options = '', xfactor = 1., yfactor = 1., timeShift = 0, **kwargs): |
89 if self.getTimeInterval().length() == 1: | 92 if self.getTimeInterval().length() == 1: |
90 marker = 'o' | 93 marker = 'o' |
91 else: | 94 else: |