def __parse_traces(self, trace_file):
    traces = []
    with open(trace_file) as f:
        csv_reader = csv.DictReader(f, delimiter=',')
        for row in csv_reader:
            trace = {}
            trace['x'] = int(row['x'])
            trace['y'] = int(row['y'])
            trace['operation'] = row['operation']
            trace['cycle'] = int(row['cycle'])
            traces.append(trace)
    return traces
def __parse_traces(self, trace_file):
    traces = []
    with open(trace_file) as f:
        csv_reader = csv.DictReader(f, delimiter=',')
        for row in csv_reader:
            trace = {}
            trace['x'] = int(row['x'])
            trace['y'] = int(row['y'])
            trace['operation'] = row['operation']
            trace['cycle'] = int(row['cycle'])
            traces.append(trace)
    return traces