[Scipy-tickets] [SciPy] #524: AttributeError: attribute 'shape' of 'numpy.generic' objects is not writable

SciPy scipy-tickets@scipy....
Sun Oct 28 04:13:00 CDT 2007


#524: AttributeError: attribute 'shape' of 'numpy.generic' objects is not
writable
-------------------------+--------------------------------------------------
 Reporter:  nils         |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.7     
Component:  scipy.stats  |     Version:  devel   
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 {{{
 ======================================================================
 ERROR: test_Robust (scipy.stats.models.tests.test_rlm.TestRegression)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/local/lib64/python2.5/site-
 packages/scipy/stats/models/tests/test_rlm.py", line 18, in test_Robust
     results = model.fit(Y)
   File "/usr/local/lib64/python2.5/site-
 packages/scipy/stats/models/rlm.py", line 75, in fit
     self.scale = self.results.scale = self.estimate_scale(self.results)
   File "/usr/local/lib64/python2.5/site-
 packages/scipy/stats/models/rlm.py", line 65, in estimate_scale
     return scale.MAD(resid)**2
   File "/usr/local/lib64/python2.5/site-
 packages/scipy/stats/models/robust/scale.py", line 35, in MAD
     unsqueeze(d, axis, a.shape)
   File "/usr/local/lib64/python2.5/site-
 packages/scipy/stats/models/robust/scale.py", line 22, in unsqueeze
     data.shape = newshape
 AttributeError: attribute 'shape' of 'numpy.generic' objects is not
 writable
 }}}

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


More information about the Scipy-tickets mailing list