Commits

Anonymous committed 0c9d386

Change ip address in Data.py from int8 to uint8

  • Participants
  • Parent commits 0d57e94

Comments (0)

Files changed (2)

     DT = np.dtype([
         ('start_time', np.float64, 1),
         ('end_time', np.float64, 1),
-        ('src_ip', np.int8, (4,)),
+        ('src_ip', np.uint8, (4,)),
         ('src_port', np.int16, 1),
         ('dst_ip', np.int16, (4,)),
         ('dst_port', np.int16, 1),
             ]
     DT = np.dtype([
             ('start_time', np.float64, 1),
-            ('src_ip', np.int8, (4,)),
+            ('src_ip', np.uint8, (4,)),
             ('src_port', np.int16, 1),
-            ('dst_ip', np.int8, (4,)),
+            ('dst_ip', np.uint8, (4,)),
             ('dst_port', np.int16, 1),
             ('packets', np.int64, 1),
             ('octets', np.int64, 1),
             ]
     DT = np.dtype([
             ('start_time', np.float64, 1),
-            ('src_ip', np.int8, (4,)),
-            ('dst_ip', np.int8, (4,)),
+            ('src_ip', np.uint8, (4,)),
+            ('dst_ip', np.uint8, (4,)),
             ('prot', np.str_, 5),
             ('flow_size', np.float64, 1),
             ('duration', np.float64, 1),
     DTM = [
         ('start_time', np.float64, 1),
         ('proto', np.str_, 5),
-        ('src_ip', np.int8, (4,)),
+        ('src_ip', np.uint8, (4,)),
         ('direction', np.str_, 5),
-        ('server_ip', np.int8, (4,)),
+        ('server_ip', np.uint8, (4,)),
         ('Cb', np.float64, 1),
         ('Cp', np.float64, 1),
         ('Sb', np.float64, 1),
 except ImportError:
     try:
         import guiqwt.pyplot as plt
-        print('--> , Use [matplotlib] as plot backend')
+        print('--> Use [matplotlib] as plot backend')
     except ImportError:
         plt = None
         print('--> [wanring], no [guiqwt] and [matplotlib], cannot visualize the result')