[Scipy-tickets] [SciPy] #505: kmeans2 fails when input is empty, but with unhelpful message

SciPy scipy-tickets@scipy....
Tue Sep 25 23:48:28 CDT 2007


#505: kmeans2 fails when input is empty, but with unhelpful message
---------------------------+------------------------------------------------
 Reporter:  cdavid         |       Owner:  cdavid
     Type:  defect         |      Status:  new   
 Priority:  normal         |   Milestone:  0.7   
Component:  scipy.cluster  |     Version:        
 Severity:  normal         |    Keywords:        
---------------------------+------------------------------------------------
 {{{
 #!python
 from scipy.cluster.vq import kmeans2
 kmeans2([], 2)
 }}}

 Fails with a cholesky decomp error, but this is really because the array
 is empty.

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


More information about the Scipy-tickets mailing list