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
Martin Manchev
osie
Commits
9dc19cc0
Commit
9dc19cc0
authored
Apr 25, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python2 -> Python3.
parent
59a963f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
rt_analyzer/analyze.py
rt_analyzer/analyze.py
+18
-18
No files found.
rt_analyzer/analyze.py
View file @
9dc19cc0
"""
Parse logical analyzer logs. Used together with test_latency.c as generator.
Usage: python
2
analyze.py digital.csv
Usage: python
3
analyze.py digital.csv
"""
import
sys
import
statistics
...
...
@@ -82,27 +82,27 @@ channel1_min = min(timestamp_channel1_delta_list)
channel1_max
=
max
(
timestamp_channel1_delta_list
)
stop_time
=
lines_list
[
-
1
].
split
(
","
)[
0
]
print
"Timestamp records = "
,
len
(
lines_list
)
print
"Duration (seconds) = "
,
stop_time
print
(
"Timestamp records = "
,
len
(
lines_list
)
)
print
(
"Duration (seconds) = "
,
stop_time
)
print
"Channel0 (in seconds):"
print
"
\
t
Mean = "
,
channel0_mean
print
"
\
t
Median = "
,
channel0_median
print
"
\
t
Min = "
,
channel0_min
print
"
\
t
Max = "
,
channel0_max
print
"
\
t
Standart deviation = "
,
channel0_stdev
print
"
\
t
Mode (most occurencies) = "
,
channel0_mode
print
(
"Channel0 (in seconds):"
)
print
(
"
\
t
Mean = "
,
channel0_mean
)
print
(
"
\
t
Median = "
,
channel0_median
)
print
(
"
\
t
Min = "
,
channel0_min
)
print
(
"
\
t
Max = "
,
channel0_max
)
print
(
"
\
t
Standart deviation = "
,
channel0_stdev
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel0_mode
)
print
"
\
n
Channel1 (in seconds):"
print
"
\
t
Mean = "
,
channel1_mean
print
"
\
t
Median = "
,
channel1_median
print
"
\
t
Min = "
,
channel1_min
print
"
\
t
Max = "
,
channel1_max
print
"
\
t
Standart deviation = "
,
channel1_stdev
print
"
\
t
Mode (most occurencies) = "
,
channel1_mode
print
(
"
\
n
Channel1 (in seconds):"
)
print
(
"
\
t
Mean = "
,
channel1_mean
)
print
(
"
\
t
Median = "
,
channel1_median
)
print
(
"
\
t
Min = "
,
channel1_min
)
print
(
"
\
t
Max = "
,
channel1_max
)
print
(
"
\
t
Standart deviation = "
,
channel1_stdev
)
print
(
"
\
t
Mode (most occurencies) = "
,
channel1_mode
)
f
.
close
()
\ No newline at end of file
f
.
close
()
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