diff python/moving.py @ 331:40790d93200e

corrected a bug for Trajectory initialization
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 14 Jun 2013 08:56:54 -0400
parents a70c205ebdd9
children 3950bfe22768
line wrap: on
line diff
--- a/python/moving.py	Thu Jun 13 23:05:28 2013 -0400
+++ b/python/moving.py	Fri Jun 14 08:56:54 2013 -0400
@@ -339,7 +339,7 @@
     The class is iterable'''
 
     def __init__(self, positions=None):
-        if positions:
+        if positions != None:
             self.positions = positions
         else:
             self.positions = [[],[]]