Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Elijah Andrews
Cavitation-Analysis
Commits
1d718a8b
Commit
1d718a8b
authored
Mar 24, 2020
by
Elijah Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added headers to reading_dump files.
parent
5e27f790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
experimental/util/analysis_utils.py
experimental/util/analysis_utils.py
+6
-1
No files found.
experimental/util/analysis_utils.py
View file @
1d718a8b
...
...
@@ -90,7 +90,7 @@ def load_readings(filename):
readings
=
[]
for
line
in
lines
:
for
line
in
lines
[
1
:]
:
if
line
[
0
]
==
"#"
:
continue
readings
.
append
(
Reading
.
from_str
(
line
))
...
...
@@ -385,6 +385,11 @@ def analyse_series(dir_path, frame_shape=(384, 264)):
to_write
+=
1
dump_file
=
open
(
dir_path
+
"readings_dump.csv"
,
"a"
)
dump_file
.
write
(
"index:repeat number, measured x (mm), measured y (mm), measured z (mm), "
"peak-to-peak x displacement (px), peak-to-peak y displacement (px), "
"in-frame bubble position x (px), in-frame bubble position y (px), "
"maximum bubble area (px^2), second maximum of bubble area (px^2), frames between maxima, "
"minimum-to-minimum x displacement (px), minimum-to-minimum y displacement (px)
\n
"
)
for
j
in
range
(
1
,
to_write
+
1
):
reading
=
readings
[
-
j
]
if
reading
.
is_complete
():
...
...
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