Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
ff1424b9
Commit
ff1424b9
authored
Jul 17, 2019
by
Andreas Schmidt
Browse files
+= file evaluation prints a warning if zero-rows are dropped
parent
b47255e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
xlap/parse.py
View file @
ff1424b9
...
...
@@ -32,7 +32,11 @@ def _evaluate_file(file_name, stamps, kind, measured_column, sender=False):
df
.
drop
(
_extract_stamps_by_src_and_kind
(
stamps
,
"sender"
),
axis
=
1
,
inplace
=
True
)
# Drop rows with value 0 (as they have probably not been written out).
return
df
[
df
[
measured_column
+
"_T"
]
!=
0
]
res
=
df
[
df
[
measured_column
+
"_T"
]
!=
0
]
total
,
filtered
=
df
.
shape
[
0
],
res
.
shape
[
0
]
if
filtered
<
total
:
print
(
"{}: ignored {} of {} packets due to missing timestamps."
.
format
(
file_name
,
total
-
filtered
,
total
))
return
res
def
_diff_t_c
(
df
,
start
,
stop
):
...
...
Write
Preview
Supports
Markdown
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