We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
In case of an even number, to get the arithmetic mean of the two middle values, shouldn't it be:
midpoint = len(valueList) // 2 return sum(valueList[midpoint-1:midpoint+1]) / 2.0
instead of:
midpoint = len(valueList) / 2 return sum(valueList[midpoint:midpoint+2]) / 2.0
hx711py/hx711.py
Line 224 in 14a8e3f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
In case of an even number, to get the arithmetic mean of the two middle values, shouldn't it be:
instead of:
hx711py/hx711.py
Line 224 in 14a8e3f
?
The text was updated successfully, but these errors were encountered: