[Scipy-tickets] [SciPy] #1829: DeprecationWarning: non-integer slice parameter. In a future numpy release, this will raise an error.

SciPy Trac scipy-tickets@scipy....
Sat Feb 2 11:47:21 CST 2013


#1829: DeprecationWarning: non-integer slice parameter. In a future numpy release,
this will raise an error.
--------------------------+-------------------------------------------------
 Reporter:  nils          |       Owner:  jakevdp
     Type:  defect        |      Status:  new    
 Priority:  normal        |   Milestone:  0.12.0 
Component:  scipy.sparse  |     Version:  0.11.0 
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by rgommers):

  * milestone:  Unscheduled => 0.12.0


Old description:

> {{{
> ERROR: test_lobpcg.test_MikotaPair
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
> runTest
>     self.test(*self.arg)
>   File "/home/nwagner/local/lib64/python2.7/site-
> packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py", line 79,
> in test_MikotaPair
>     compare_solutions(A,B,20)
>   File "/home/nwagner/local/lib64/python2.7/site-
> packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py", line 57,
> in compare_solutions
>     assert_almost_equal(w[:m/2],eigs[:m/2],decimal=2)
> DeprecationWarning: non-integer slice parameter. In a future numpy
> release, this will raise an error.
> }}}

New description:

 {{{
 ERROR: test_lobpcg.test_MikotaPair
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in
 runTest
     self.test(*self.arg)
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py", line 79,
 in test_MikotaPair
     compare_solutions(A,B,20)
   File "/home/nwagner/local/lib64/python2.7/site-
 packages/scipy/sparse/linalg/eigen/lobpcg/tests/test_lobpcg.py", line 57,
 in compare_solutions
     assert_almost_equal(w[:m/2],eigs[:m/2],decimal=2)
 DeprecationWarning: non-integer slice parameter. In a future numpy
 release, this will raise an error.
 }}}

--

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1829#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list