pollen-robotics / dtw

DTW (Dynamic Time Warping) python module
GNU General Public License v3.0
1.16k stars 233 forks source link

Example Notebook call error #20

Closed apiszcz closed 7 years ago

apiszcz commented 7 years ago

The following line returns 3 values not 4 as shown in the notebook

Produces an error message dist, cost, acc, path = dtw(x, y, dist=lambda x, y: norm(x - y, ord=1))

No error dist,cost,path=dtw.dtw(x, y, dist=lambda x, y: norm(x - y, ord=1))

pierre-rouanet commented 7 years ago

I'm not sure to understand. If you look here it returns 4 elements:

https://github.com/pierre-rouanet/dtw/blob/master/dtw.py#L34

Are you sure you are using the last version?

apiszcz commented 7 years ago

Thank you, i was using an old version. All set.