diff python/moving.py @ 552:ca6bded754ac

corrected more bugs from merging (caught in regression tests)
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 08 Jul 2014 17:04:55 -0400
parents dc3739ac2371
children f13220f765e0
line wrap: on
line diff
--- a/python/moving.py	Tue Jul 08 16:59:35 2014 -0400
+++ b/python/moving.py	Tue Jul 08 17:04:55 2014 -0400
@@ -637,7 +637,7 @@
     def __init__(self, S = None, Y = None, lanes = None):
         if S == None or Y == None or len(S) != len(Y):
             self.positions = [[],[]]
-            if len(S) != len(Y):
+            if S != None and Y != None and len(S) != len(Y):
                 print("S and Y coordinates of different lengths\nInitializing to empty lists")
         else:
             self.positions = [S,Y]