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

change numpy matrix usage in wx2d (radialvel) #78

Open
SaOgaz opened this issue Mar 20, 2019 · 0 comments
Open

change numpy matrix usage in wx2d (radialvel) #78

SaOgaz opened this issue Mar 20, 2019 · 0 comments

Comments

@SaOgaz
Copy link
Contributor

SaOgaz commented Mar 20, 2019

This should eliminate the following pytest deprecation warnings

tests/test_wx2d.py::TestWx2d::test_wx2d_t1
/Users/ogaz/stistools/stistools/radialvel.py:226: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
m_a = N.matrix(a)

/Users/ogaz/stistools/stistools/radialvel.py:227: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
m_target_j2000 = N.matrix(target_j2000)

/Users/ogaz/miniconda3/envs/stistoolsdev/lib/python3.6/site-packages/numpy/matrixlib/defmatrix.py:68: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
return matrix(data, dtype=dtype, copy=False)

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