Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
2b39500f
Commit
2b39500f
authored
May 18, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save timestamped files.
parent
6d801de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
rt_analyzer/analyze.py
rt_analyzer/analyze.py
+10
-0
No files found.
rt_analyzer/analyze.py
View file @
2b39500f
...
@@ -95,6 +95,16 @@ except statistics.StatisticsError:
...
@@ -95,6 +95,16 @@ except statistics.StatisticsError:
channel1_min
=
min
(
timestamp_channel1_delta_list
)
channel1_min
=
min
(
timestamp_channel1_delta_list
)
channel1_max
=
max
(
timestamp_channel1_delta_list
)
channel1_max
=
max
(
timestamp_channel1_delta_list
)
# save only Durations for further analyses
channel_0_text
=
"
\
n
"
.
join
([
str
(
x
)
for
x
in
timestamp_channel0_delta_list
])
channel_1_text
=
"
\
n
"
.
join
([
str
(
x
)
for
x
in
timestamp_channel1_delta_list
])
f
=
open
(
"channel0_duration.txt"
,
"w"
)
f
.
write
(
channel_0_text
)
f
.
close
()
f
=
open
(
"channel1_duration.txt"
,
"w"
)
f
.
write
(
channel_1_text
)
f
.
close
()
stop_time
=
lines_list
[
-
1
].
split
(
","
)[
0
]
stop_time
=
lines_list
[
-
1
].
split
(
","
)[
0
]
print
(
"Timestamp records = "
,
len
(
lines_list
))
print
(
"Timestamp records = "
,
len
(
lines_list
))
print
(
"Duration (seconds) = "
,
stop_time
)
print
(
"Duration (seconds) = "
,
stop_time
)
...
...
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