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

Warning message in test #115

Open
inakleinbottle opened this issue Jun 8, 2021 · 0 comments
Open

Warning message in test #115

inakleinbottle opened this issue Jun 8, 2021 · 0 comments

Comments

@inakleinbottle
Copy link
Contributor

The following warning message is displayed when running the test suite for esig:

esig/tests/test_package.py::TestESIG::test_chen
  /home/sam/datasig/esig/esig/tests/test_package.py:145: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
    self.assertEqual(all(np.concatenate((np.array(chen)-np.array(sig_concat)).flatten())),0)

-- Docs: https://docs.pytest.org/en/stable/warnings.html

This is caused by the statement in the assert to check if the two arrays are equal.

Numpy actually provides a testing interface that we should probably use instead (https://numpy.org/doc/stable/reference/routines.testing.html).

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