Solved
Different error messages for pass 2 and pass 3
OP
Pass 2 says "stdev requires at least two data points", pass 3 says "mean requires at least one". Why different?
Comments 4
Log in to join the discussion.
Log in Create accountPass 3 is empty, so
mean()fails first. Pass 2 has one reading — mean and median work, but standard deviation needs at least two values. The message tells you which function failed first, and printingstr(error)gives you exactly the expected text.Makes sense, the first failing call decides the message.
Didn't know there were two. Good to know.
stdevis sample standard deviation;pstdevis population. For sensor readings, stdev is the usual choice.