Commit 3a1f5d10df53e6877dc3f3882966630db4312a05

Authored by Luke Baker
1 parent fda7a1be

add comment for ignore choices

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/tasks/test_api.rake
... ... @@ -549,6 +549,8 @@ namespace :test_api do
549 549 if sum > 0:
550 550 stddev = Math.sqrt( appearances_by_choice_id.values.inject(0) { |sum, e| sum + (e - mean) ** 2 } / appearances_by_choice_id.size.to_f )
551 551  
  552 + # this choice appears to have been deactivated then reactivated after
  553 + # a period of voting
552 554 ignore_choices = [133189]
553 555 appearances_by_choice_id.each do |choice_id, n_i|
554 556 if ((n_i < (mean - 6*stddev)) || (n_i > mean + 6 *stddev)) && !ignore_choices.include?(choice_id) && Choice.find(choice_id).active?
... ...