Permalink
Browse files

number of BAs and WAs fix

changed the dictionary header to access the correct column to count the
number of BAs and WAs
  • Loading branch information...
1 parent 12f4dc6 commit 3eec54801af602e91fbc55cf1e2ac0d05232628c ctmdev committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/csvProcessShahin.py
View
@@ -25,7 +25,7 @@ def main():
#calculate the frequency of responses
d = defaultdict(int)
- for ans in coldict['key_resp.corr']:
+ for ans in coldict['key_resp.keys']:
d[ans] += 1
print 'number times answered BA: ' + str(d['1'])
print 'number times answered WA: ' + str(d['2'])

0 comments on commit 3eec548

Please sign in to comment.