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

VisibleDeprecationWarning since numpy 1.11, Boolean Error since numpy 1.13 #25

Open
audiofeature opened this issue Aug 15, 2017 · 0 comments

Comments

@audiofeature
Copy link

in transform2bark() in rp_extract.py there is this warning since numpy 1.11:

    # VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 1024 but corresponding boolean dimension is 513
    matrix_out[b] = np.sum(matrix[((freq_axis >= barks[b]) & (freq_axis < barks[b+1]))], axis=0)

Since numpy 1.13 it became an error.

This is because the matrix on the right hand side does not match the matrix to be assigned.
(so far it has been assigned implicitly)

It should be thouroughly checked what is assigned before this code can be fixed.

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

No branches or pull requests

1 participant