Commit ff1424b9 authored by Andreas Schmidt's avatar Andreas Schmidt

+= file evaluation prints a warning if zero-rows are dropped

parent b47255e1
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment