def __init__(self, csvData): MultiDiGraph.__init__(self) self.data = open(csvData) self.colors = [] # saves the color of each edge in the graph self.modifiedOnce = False # tells if the graph has already been modified one self.modifiedGraph = None # saves the modified graph #self.colorGradient = ['#00a500', '#1ea500', '#3ca500', '#5ab400', '#78b400', '#96c300', #'#b4d200', '#d2d200', '#f0e100', '#fff000', '#ffd200', '#ffb400', #'#ff9600', '#ff7800', '#ff5a00', '#f04b00', '#ff3c00', '#f02d00', #'#e11e00', '#d20f00', '#b40000'] # color list from red to green self.colorGradient = [ '#fffb2c', '#ffea47', '#ffdc6b', '#ffd06a', '#ffc573', '#ffbd7a', '#ffb482', '#ffb28b', '#ffa789', '#ff9c8d', '#ff8b87', '#ff8fa4', '#ff9ccc', '#ff93e0', '#ff7ff0', '#f86aff', '#df52ff', '#b23fff' ] # color list for an eeg graph self.colorGradient2 = [ '#fff52d', '#ffff3f', '#edff4e', '#e3ff64', '#e6ff74', '#dbff86', '#c8ff8e', '#b2ff82', '#a0ff86', '#87ff8b', '#7dffaf', '#7cffc6', '#67ffd9', '#5cddf9', '#57ffff', '#49e7ff', '#3ed5ff', '#3ab3ff' ] # color list for a phase shift graph self.edgeList = [] # saves all the edges in the graph
def __init__(self): MultiDiGraph.__init__(self) self.elaborated = False
def __init__(self): MultiDiGraph.__init__(self) self.elaborated = False self.abstract_busy_signals = dict()
def __init__(self): MultiDiGraph.__init__(self) self.class_counts = {}
def __init__(self, annot): MultiDiGraph.__init__(self) # self.source_line = annot.get("source_line").rstrip().replace("\t", " ") self.class_counts = {}