Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: scripts/slave/recipe_modules/math_utils/api.py

Issue 1044543002: Lint bisect-related modules; obey pylint. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/bisect_tester/test_api.py ('k') | scripts/slave/recipes/bisect.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/math_utils/api.py
diff --git a/scripts/slave/recipe_modules/math_utils/api.py b/scripts/slave/recipe_modules/math_utils/api.py
index fa31575f63f98b13b5b1d394deb93dc762efe527..d0063b19d15e8a40b8736b07b9a218d240cf0655 100644
--- a/scripts/slave/recipe_modules/math_utils/api.py
+++ b/scripts/slave/recipe_modules/math_utils/api.py
@@ -8,6 +8,7 @@ import math
from slave import recipe_api
+
class MathUtilsApi(recipe_api.RecipeApi):
@staticmethod
@@ -138,7 +139,7 @@ class MathUtilsApi(recipe_api.RecipeApi):
#Copied this from BisectResults
@staticmethod
def confidence_score(sample1, sample2,
- accept_single_bad_or_good=False):
+ accept_single_bad_or_good=False):
"""Calculates a confidence score.
This score is a percentage which represents our degree of confidence in the
@@ -251,7 +252,6 @@ class MathUtilsApi(recipe_api.RecipeApi):
(v2 ** 2) / ((n2 ** 2) * (n2 - 1))))
return max(1, df)
-
# Below is a hard-coded table for looking up p-values.
#
# Normally, p-values are calculated based on the t-distribution formula.
« no previous file with comments | « scripts/slave/recipe_modules/bisect_tester/test_api.py ('k') | scripts/slave/recipes/bisect.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698