Commit 7f6cfa7a authored by julian.gethmann's avatar julian.gethmann

Refactor variable name x_i to avoid confusion with chromaticity

parent 110b57d9
......@@ -54,7 +54,7 @@ def _get_mean_values(
_logger.info("Values for PV: {}".format(pv))
try:
mean = sum(obj[1]) / len(obj[1])
std = sqrt(sum([(xi - mean)**2 for xi in obj[1]]) / (len(obj[1]) - 1))
std = sqrt(sum([(x_i - mean)**2 for x_i in obj[1]]) / (len(obj[1]) - 1))
print(output_str[output_format].format(name=pv, val=mean, std=std))
except ValueError:
raise ValueError("Probably too short time to get enough points")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment