[SciPy-dev] Changeset 3443

Nils Wagner nwagner at iam.uni-stuttgart.de
Fri Oct 19 14:03:55 EDT 2007


======================================================================
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

======================================================================
ERROR: test_Robustdegenerate 
(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 26, in test_Robustdegenerate
     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



More information about the SciPy-Dev mailing list