[Scipy-tickets] [SciPy] #1470: ERROR: gaussian gradient magnitude filter 1

SciPy Trac scipy-tickets@scipy....
Sun Jul 3 05:25:49 CDT 2011


#1470: ERROR: gaussian gradient magnitude filter 1
---------------------------+------------------------------------------------
 Reporter:  nils           |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:  0.10.0  
Component:  scipy.ndimage  |     Version:  devel   
 Keywords:                 |  
---------------------------+------------------------------------------------
Changes (by rgommers):

  * version:  0.9.0 => devel
  * milestone:  Unscheduled => 0.10.0


Old description:

> {{{
> >>> scipy.__version__
> '0.10.0.dev7179'
> >>> numpy.__version__
> '2.0.0.dev-5e4a407'
> }}}
>
> {{{
> ======================================================================
> ERROR: gaussian gradient magnitude filter 1
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2
> .dev-py2.6.egg/nose/case.py", line 183, in runTest
>     self.test(*self.arg)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/ndimage/tests/test_ndimage.py", line 670, in
> test_gaussian_gradient_magnitude01
>     1.0)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/ndimage/filters.py", line 479, in
> gaussian_gradient_magnitude
>     cval, extra_arguments = (sigma,))
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/ndimage/filters.py", line 450, in
> generic_gradient_magnitude
>     numpy.sqrt(output, output)
> TypeError: ufunc 'sqrt' output (typecode 'd') could not be coerced to
> provided output parameter (typecode 'i') according to the casting rule
> 'same_kind'
> }}}

New description:

 {{{
 >>> scipy.__version__
 '0.10.0.dev7179'
 >>> numpy.__version__
 '2.0.0.dev-5e4a407'
 }}}

 {{{
 ======================================================================
 ERROR: gaussian gradient magnitude filter 1
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-
 py2.6.egg/nose/case.py", line 183, in runTest
     self.test(*self.arg)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/ndimage/tests/test_ndimage.py", line 670, in
 test_gaussian_gradient_magnitude01
     1.0)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/ndimage/filters.py", line 479, in
 gaussian_gradient_magnitude
     cval, extra_arguments = (sigma,))
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/ndimage/filters.py", line 450, in
 generic_gradient_magnitude
     numpy.sqrt(output, output)
 TypeError: ufunc 'sqrt' output (typecode 'd') could not be coerced to
 provided output parameter (typecode 'i') according to the casting rule
 'same_kind'
 }}}

--

Comment:

 Should be fixed by https://github.com/scipy/scipy/pull/38

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1470#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