Commits

Nicolas Saunier  committed 3707eeb

changed argMaxDict name to argmaxDict

  • Participants
  • Parent commits fd9641c

Comments (0)

Files changed (1)

File python/utils.py

     from numpy import median
     return median([y for observedx, y in zip(X,Y) if abs(x-observedx)<halfwidth])
 
-def argMaxDict(d):
+def argmaxDict(d):
     return max(d.iterkeys(), key=(lambda key: d[key]))
 
 def framesToTime(nFrames, frameRate, initialTime = time()):
                 lcssValues[i] = self.similarityTable.max()
                 similarityTables[i] = self.similarityTable
                 #print self.similarityTable
-            alignmentShift = argMaxDict(lcssValues) # ideally get the medium alignment shift, the one that minimizes distance
+            alignmentShift = argmaxDict(lcssValues) # ideally get the medium alignment shift, the one that minimizes distance
             self.similarityTable = similarityTables[alignmentShift]
         else:
             alignmentShift = 0