slaypni / fastdtw

A Python implementation of FastDTW
MIT License
774 stars 122 forks source link

Corner case bug? #17

Open eltrompetero opened 6 years ago

eltrompetero commented 6 years ago

I'm getting an index error in line 148 of fastdtw.py

i, j = D[i, j][1], D[i, j][2]

when (i,j) = (0,1) because D[i,j] = (inf,) and that is a tuple of length one. Is it correct that the next step should be (0,0)?