[Scipy-tickets] [SciPy] #828: Locale issues in scipy.io.mmio

SciPy Trac scipy-tickets@scipy....
Mon Oct 4 13:18:08 CDT 2010


#828: Locale issues in scipy.io.mmio
-----------------------+----------------------------------------------------
  Reporter:  nils      |       Owner:  somebody
      Type:  defect    |      Status:  closed  
  Priority:  normal    |   Milestone:  0.9.0   
 Component:  scipy.io  |     Version:  devel   
Resolution:  fixed     |    Keywords:          
-----------------------+----------------------------------------------------
Changes (by pv):

  * status:  new => closed
  * resolution:  => fixed


Old description:

> {{{
> >>> scipy.__version__
> '0.7.0.dev5294'
> >>> numpy.__version__
> '1.3.0.dev6221'
> }}}
>
> {{{
> ======================================================================
> ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/tests/test_mmio.py", line 290, in
> test_complex_write_read
>     b = mmread(fn).todense()
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 52, in mmread
>     return MMFile().read(source)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 273, in read
>     return self._parse_body(stream)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 407, in _parse_body
>     flat_data = flat_data.reshape(-1,4)
> ValueError: total size of new array must be unchanged
>
> ======================================================================
> ERROR: read a hermitian matrix
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/tests/test_mmio.py", line 213, in test_read_hermitian
>     b = mmread(fn).todense()
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 52, in mmread
>     return MMFile().read(source)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 273, in read
>     return self._parse_body(stream)
>   File "/home/nwagner/local/lib64/python2.6/site-
> packages/scipy/io/mmio.py", line 407, in _parse_body
>     flat_data = flat_data.reshape(-1,4)
> ValueError: total size of new array must be unchanged
> }}}

New description:

 {{{
 >>> scipy.__version__
 '0.7.0.dev5294'
 >>> numpy.__version__
 '1.3.0.dev6221'
 }}}

 {{{
 ======================================================================
 ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/tests/test_mmio.py", line 290, in
 test_complex_write_read
     b = mmread(fn).todense()
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 52, in mmread
     return MMFile().read(source)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 273, in read
     return self._parse_body(stream)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 407, in _parse_body
     flat_data = flat_data.reshape(-1,4)
 ValueError: total size of new array must be unchanged

 ======================================================================
 ERROR: read a hermitian matrix
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/tests/test_mmio.py", line 213, in test_read_hermitian
     b = mmread(fn).todense()
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 52, in mmread
     return MMFile().read(source)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 273, in read
     return self._parse_body(stream)
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/io/mmio.py", line 407, in _parse_body
     flat_data = flat_data.reshape(-1,4)
 ValueError: total size of new array must be unchanged
 }}}

--

Comment:

 Has been fixed in Numpy since.

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


More information about the Scipy-tickets mailing list