Permalink
Browse files

STY pep8

  • Loading branch information...
1 parent 83fad40 commit ee250d71abf6a9473d950677534daaa3f1791c39 @kwgoodman committed Jun 21, 2013
Showing with 46,784 additions and 16,839 deletions.
  1. +3 −2 bottleneck/benchmark/autotimeit.py
  2. +56 −52 bottleneck/benchmark/bench.py
  3. +27,741 −8,762 bottleneck/src/func/func.c
  4. +18,250 −7,394 bottleneck/src/move/move.c
  5. +9 −9 bottleneck/src/template/func/allnan.py
  6. +10 −10 bottleneck/src/template/func/anynan.py
  7. +16 −16 bottleneck/src/template/func/argpartsort.py
  8. +4 −3 bottleneck/src/template/func/func.py
  9. +22 −22 bottleneck/src/template/func/median.py
  10. +14 −14 bottleneck/src/template/func/nanargmax.py
  11. +15 −15 bottleneck/src/template/func/nanargmin.py
  12. +21 −21 bottleneck/src/template/func/nanmax.py
  13. +19 −19 bottleneck/src/template/func/nanmean.py
  14. +29 −29 bottleneck/src/template/func/nanmedian.py
  15. +20 −20 bottleneck/src/template/func/nanmin.py
  16. +17 −17 bottleneck/src/template/func/nanrankdata.py
  17. +24 −24 bottleneck/src/template/func/nanstd.py
  18. +16 −16 bottleneck/src/template/func/nansum.py
  19. +26 −26 bottleneck/src/template/func/nanvar.py
  20. +12 −12 bottleneck/src/template/func/nn.py
  21. +18 −18 bottleneck/src/template/func/partsort.py
  22. +19 −19 bottleneck/src/template/func/rankdata.py
  23. +11 −11 bottleneck/src/template/func/replace.py
  24. +11 −11 bottleneck/src/template/func/ss.py
  25. +1 −0 bottleneck/src/template/move/move.py
  26. +26 −26 bottleneck/src/template/move/move_max.py
  27. +13 −13 bottleneck/src/template/move/move_mean.py
  28. +18 −18 bottleneck/src/template/move/move_median.py
  29. +26 −26 bottleneck/src/template/move/move_min.py
  30. +25 −25 bottleneck/src/template/move/move_nanmax.py
  31. +11 −11 bottleneck/src/template/move/move_nanmean.py
  32. +26 −26 bottleneck/src/template/move/move_nanmin.py
  33. +13 −13 bottleneck/src/template/move/move_nanstd.py
  34. +11 −11 bottleneck/src/template/move/move_nansum.py
  35. +15 −15 bottleneck/src/template/move/move_std.py
  36. +14 −14 bottleneck/src/template/move/move_sum.py
  37. +35 −28 bottleneck/src/template/template.py
  38. +31 −2 bottleneck/tests/fast_test.py
  39. +35 −12 bottleneck/tests/func_test.py
  40. +8 −6 bottleneck/tests/input_modifcation_test.py
  41. +36 −6 bottleneck/tests/list_input_test.py
  42. +19 −5 bottleneck/tests/move_test.py
  43. +4 −4 sandbox/setup.py
  44. +34 −36 setup.py
@@ -1,18 +1,19 @@
import timeit
+
def autotimeit(stmt, setup='pass', repeat=3, mintime=0.2):
timer = timeit.Timer(stmt, setup)
number, time1 = autoscaler(timer, mintime)
time2 = timer.repeat(repeat=repeat-1, number=number)
return min(time2 + [time1]) / number
+
def autoscaler(timer, mintime):
number = 1
for i in range(12):
time = timer.timeit(number)
if time > mintime:
- return number, time
+ return number, time
number *= 10
raise RuntimeError('function is too fast to test')
-
Oops, something went wrong.

0 comments on commit ee250d7

Please sign in to comment.