#22 UnboundLocalError computing Chi Square

closed-fixed
6
2011-10-30
2011-10-30
No

Traceback (most recent call last):
File "/Users/mlivingstone/Documents/workspace/salstat/dialogs.py", line 112, in GoTest
if _class == 'OneSampleTestClass': dataObject.Perform1SampleTest(self.data)
File "/Users/mlivingstone/Documents/workspace/salstat/dataObject.py", line 210, in __init__
getattr(test, choice)(inlist, dataObject.alphaLevel)
File "/Users/mlivingstone/Documents/workspace/salstat/salstat_stats.py", line 704, in ChiSquareVariance
self.prob = chisqprob(self.chisquare, self.df)
File "/Users/mlivingstone/Documents/workspace/salstat/salstat_stats.py", line 189, in chisqprob
s = s + ex(c*z-a-e)
UnboundLocalError: local variable 'c' referenced before assignment

Discussion

  • Mark Livingstone

    • status: open --> closed-fixed
     
  • Mark Livingstone

    Fixed in commit 60. Code indentation error.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks