fixed crush when trying to import enum 48/5248/1
authoritraviv <[email protected]>
Thu, 12 Jan 2017 14:39:16 +0000 (16:39 +0200)
committeritraviv <[email protected]>
Thu, 12 Jan 2017 14:39:27 +0000 (16:39 +0200)
Signed-off-by: itraviv <[email protected]>
doc/TRexDataAnalysisV2.py

index cd49538..28894ea 100755 (executable)
@@ -2,8 +2,6 @@
 import pandas as pd\r
 import numpy as np\r
 import matplotlib\r
-from enum import IntEnum\r
-\r
 matplotlib.use('Agg')\r
 from matplotlib import pyplot as plt\r
 import os\r
@@ -21,7 +19,10 @@ This Module is structured to work with a raw data at the following JSON format:
  }\r
 \r
  The Query structure is set (currently) to this:\r
- (test_name,state, date,hour,minute,mpps_result,mpps_min,mpps_max,build_id)\r
+\r
+ (test_name,state, date,hour,minute,mpps_result,mpps_min,mpps_max,build_id) example:\r
+\r
+ ["syn attack - 64 bytes, single CPU", "stl", "20161226", "01", "39", "9.631898", "9.5", "11.5", "54289"]\r
 \r
  it can be changed to support other formats of queries, simply change the enum class to support your desired structure\r
  the enums specify the indexes of the data within the query tuple\r
@@ -29,7 +30,7 @@ This Module is structured to work with a raw data at the following JSON format:
 """\r
 \r
 \r
-class TestQuery(IntEnum):\r
+class TestQuery(object):\r
     QUERY_DATE = 2  # date format is yyyymmdd\r
     QUERY_HOUR = 3\r
     QUERY_MINUTE = 4\r