Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
utmpn
cassandra
Commits
7f6cfa7a
Commit
7f6cfa7a
authored
May 25, 2018
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor variable name x_i to avoid confusion with chromaticity
parent
110b57d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/cassandra/tools.py
src/cassandra/tools.py
+1
-1
No files found.
src/cassandra/tools.py
View file @
7f6cfa7a
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment