[Scipy-tickets] [SciPy] #827: ValueError: total size of new array must be unchanged

SciPy scipy-tickets@scipy....
Sun Dec 28 03:17:18 CST 2008


#827: ValueError: total size of new array must be unchanged
---------------------------+------------------------------------------------
 Reporter:  nils           |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:  0.7.0   
Component:  scipy.cluster  |     Version:  devel   
 Severity:  normal         |    Keywords:          
---------------------------+------------------------------------------------
 scipy.test() and python2.6

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

 {{{
 ======================================================================
 ERROR: Testing that kmeans2 init methods work.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/cluster/tests/test_vq.py", line 147, in test_kmeans2_init
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged

 ======================================================================
 ERROR: Testing simple call to kmeans2 with rank 1 data.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/cluster/tests/test_vq.py", line 127, in test_kmeans2_rank1
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged

 ======================================================================
 ERROR: Testing simple call to kmeans2 with rank 1 data.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/cluster/tests/test_vq.py", line 139, in
 test_kmeans2_rank1_2
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged

 ======================================================================
 ERROR: This will cause kmean to have a cluster with no points.
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/nwagner/local/lib64/python2.6/site-
 packages/scipy/cluster/tests/test_vq.py", line 96, in
 test_kmeans_lost_cluster
     data = data.reshape((200, 2))
 ValueError: total size of new array must be unchanged
 }}}

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


More information about the Scipy-tickets mailing list