Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X-Lap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
LARN
X-Lap
Commits
57bb9e64
Commit
57bb9e64
authored
Nov 06, 2017
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0 values in measured column indicates how many rounds were done.
parent
b7d5f55c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xlap/parse.py
xlap/parse.py
+4
-4
No files found.
xlap/parse.py
View file @
57bb9e64
...
...
@@ -29,8 +29,8 @@ def _evaluate_file(file_name, stamps, kind, measured_column, sender=False):
else
:
df
.
drop
(
_extract_stamps_by_src_and_kind
(
stamps
,
"sender"
),
axis
=
1
,
inplace
=
True
)
# Drop
empty rows
(as they have probably not been written out).
return
df
[
pd
.
notnull
(
df
).
all
(
axis
=
1
)
]
# Drop
rows with value 0
(as they have probably not been written out).
return
df
[
df
[
measured_column
+
"_T"
]
!=
0
]
def
_diff_t_c
(
df
,
start
,
stop
):
...
...
@@ -41,8 +41,8 @@ def _diff_t_c(df, start, stop):
def
evaluate
(
sender_file
,
receiver_file
,
config
,
kind
=
0
):
stamps
=
config
[
"stamps"
]
df1
=
_evaluate_file
(
sender_file
,
stamps
,
kind
,
True
)
df2
=
_evaluate_file
(
receiver_file
,
stamps
,
kind
)
df1
=
_evaluate_file
(
sender_file
,
stamps
,
kind
,
_stamp_name_by_src_and_type
(
stamps
,
"sender"
,
kind
=
[
"time"
])[
0
],
True
)
df2
=
_evaluate_file
(
receiver_file
,
stamps
,
kind
,
_stamp_name_by_src_and_type
(
stamps
,
"receiver"
,
kind
=
[
"time"
])[
0
]
)
df
=
df1
.
join
(
df2
)
tr
=
config
[
"time_reference"
]
...
...
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