#22 UnboundLocalError computing Chi Square

closed-fixed
6
2011-10-30
2011-10-30
Mark Livingstone
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

    • status: open --> closed-fixed
     
  • Fixed in commit 60. Code indentation error.