not working for python3, trying

This commit is contained in:
Martin Diehl 2018-11-17 11:07:22 +01:00
parent e1a730e96b
commit 44bd85a041
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ def mapIncremental(label, mapping, N, base, new):
'unique': lambda n,b,a: a if n==0 or b==a else 'nan'
}
if mapping in theMap:
mapped = map(theMap[mapping],[N]*len(base),base,new) # map one of the standard functions to data
mapped = map(theMap[mapping],[N for i in range(len(base))],base,new) # map one of the standard functions to data
if label.lower() == 'orientation': # orientation is special case:...
orientationNorm = math.sqrt(sum([q*q for q in mapped])) # ...calc norm of average quaternion
mapped = map(lambda x: x/orientationNorm, mapped) # ...renormalize quaternion