diff 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
line wrap: on
line diff
--- a/trafficintelligence/indicators.py	Tue May 28 17:16:41 2024 -0400
+++ b/trafficintelligence/indicators.py	Wed May 29 09:52:42 2024 -0400
@@ -85,6 +85,9 @@
     def getInstants(self):
         return list(self.values.keys())
 
+    def existsAtInstant(self, instant):
+        return instant in self.values
+
     def plot(self, options = '', xfactor = 1., yfactor = 1., timeShift = 0, **kwargs):
         if self.getTimeInterval().length() == 1:
             marker = 'o'