summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authoritraviv <itraviv@cisco.com>2017-01-12 16:39:16 +0200
committeritraviv <itraviv@cisco.com>2017-01-12 16:39:27 +0200
commit8efde3503c07562a00b36cec4ee0dec1d2a89127 (patch)
treeef0effe0d2ab159e3497e51389e931412ef17358 /doc
parent83861b490b5ce17212830a425d7c8cfd00090c40 (diff)
fixed crush when trying to import enum
Signed-off-by: itraviv <itraviv@cisco.com>
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/TRexDataAnalysisV2.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/TRexDataAnalysisV2.py b/doc/TRexDataAnalysisV2.py
index cd49538d..28894ea2 100755
--- a/doc/TRexDataAnalysisV2.py
+++ b/doc/TRexDataAnalysisV2.py
@@ -2,8 +2,6 @@
import pandas as pd
import numpy as np
import matplotlib
-from enum import IntEnum
-
matplotlib.use('Agg')
from matplotlib import pyplot as plt
import os
@@ -21,7 +19,10 @@ This Module is structured to work with a raw data at the following JSON format:
}
The Query structure is set (currently) to this:
- (test_name,state, date,hour,minute,mpps_result,mpps_min,mpps_max,build_id)
+
+ (test_name,state, date,hour,minute,mpps_result,mpps_min,mpps_max,build_id) example:
+
+ ["syn attack - 64 bytes, single CPU", "stl", "20161226", "01", "39", "9.631898", "9.5", "11.5", "54289"]
it can be changed to support other formats of queries, simply change the enum class to support your desired structure
the enums specify the indexes of the data within the query tuple
@@ -29,7 +30,7 @@ This Module is structured to work with a raw data at the following JSON format:
"""
-class TestQuery(IntEnum):
+class TestQuery(object):
QUERY_DATE = 2 # date format is yyyymmdd
QUERY_HOUR = 3
QUERY_MINUTE = 4