2 #-----------------------------------------------------------------------------
3 # Copyright (C) 2014 iZsh <izsh at fail0verflow.com>
5 # This code is licensed to you under the terms of the GNU GPL, version 2 or,
6 # at your option, any later version. See the LICENSE.txt file for the text of
8 #-----------------------------------------------------------------------------
13 except ModuleNotFoundError
:
14 print("Please install numpy module first.")
18 import matplotlib
.pyplot
as plt
19 except ModuleNotFoundError
:
20 print("Please install matplotlib module first.")
23 if len(sys
.argv
) != 2:
24 print("Usage: %s <basename>" % sys
.argv
[0])
27 BASENAME
= sys
.argv
[1]
29 nx
= numpy
.fromfile(BASENAME
+ ".time")
34 sig
= bytearray(open(BASENAME
+ ".filtered", 'rb').read())
35 min_vals
= bytearray(open(BASENAME
+ ".min", 'rb').read())
36 max_vals
= bytearray(open(BASENAME
+ ".max", 'rb').read())
37 states
= bytearray(open(BASENAME
+ ".state", 'rb').read())
38 toggles
= bytearray(open(BASENAME
+ ".toggle", 'rb').read())
39 high
= bytearray(open(BASENAME
+ ".high", 'rb').read())
40 highz
= bytearray(open(BASENAME
+ ".highz", 'rb').read())
41 lowz
= bytearray(open(BASENAME
+ ".lowz", 'rb').read())
42 low
= bytearray(open(BASENAME
+ ".low", 'rb').read())