# HG changeset patch # User Nicolas Saunier # Date 1374507995 14400 # Node ID 0ce2210790b1c83f402f888cd4dd6660abfe3167 # Parent ba813f148ade190658fadcc61203a03ebef93afc fixed stupid naming bug diff -r ba813f148ade -r 0ce2210790b1 python/moving.py --- a/python/moving.py Sun Jul 21 10:23:15 2013 -0400 +++ b/python/moving.py Mon Jul 22 11:46:35 2013 -0400 @@ -524,7 +524,7 @@ '''Indicates whether the minProportion (<=1.) (eg half) of the trajectory elements (vectors for velocity) have a cosine with refDirection is smaller than cosineThreshold''' count = 0 - lengthTreshold = float(self.length())*minProportion + lengthThreshold = float(self.length())*minProportion for p in self: if p.similarOrientation(refDirection, cosineThreshold): count += 1