Skip to content

Commit

Permalink
Final QA tweak (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle committed Jun 30, 2023
1 parent 72d658e commit da81627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-312/perf-profiler/benchmark_optimized.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def get_average_luminance(pixels):
return exp(mean([log(luminance(pixel) + 1e-9) for pixel in pixels]))


def mean(n):
return sum(n) / len(n)
def mean(numbers):
return sum(numbers) / len(numbers)


def luminance(pixel):
Expand Down

0 comments on commit da81627

Please sign in to comment.