mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
More work on the tests...
This commit is contained in:
@@ -49,5 +49,5 @@ def median(data):
|
||||
return data[n // 2]
|
||||
else:
|
||||
i = n // 2
|
||||
return (data[n - 1] + data[n]) / 2
|
||||
return (data[i - 1] + data[i]) / 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user