slaypni / fastdtw

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

bugfix related to numpy DeprecationWarning of 1d array passing error … #15

Open ghost opened 6 years ago

ghost commented 6 years ago

…will raise ValueError in numpy 0.19

Line 141 of fastdtw.py raises DeprecationWarning that Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19 because dist(...) returns numpy.array of size (1, 1). The update just changed the line to suppress the warning/error.

slaypni commented 5 years ago

Sorry about my lazy response.

I did not see DeprecationWarning when using the latest numpy and scipy. dist should return scalar value.