Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Oct 6, 2017

…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
Copy link
Owner

slaypni commented Sep 16, 2018

Sorry about my lazy response.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants