Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: attribute 'shape' of 'numpy.generic' objects is not writable (Trac #524) #1051

Closed
scipy-gitbot opened this issue Apr 25, 2013 · 1 comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.stats
Milestone

Comments

@scipy-gitbot
Copy link

Original ticket http://projects.scipy.org/scipy/ticket/524 on 2007-10-28 by @nilswagner01, assigned to unknown.

======================================================================
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
@scipy-gitbot
Copy link
Author

@nilswagner01 wrote on 2007-11-01

Fixed in 4d313ef.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect A clear bug or issue that prevents SciPy from being installed or used as expected Migrated from Trac scipy.stats
Projects
None yet
Development

No branches or pull requests

1 participant