From ad31d16f768ad97171bf574427b5eed1d292ba3c Mon Sep 17 00:00:00 2001 From: Rizwana Begum Date: Tue, 5 May 2015 16:57:06 -0400 Subject: [PATCH] cleanup --- figures/notuning_wtuning.py | 10 ---------- 1 file changed, 0 insertions(+), 10 deletions(-) diff --git a/figures/notuning_wtuning.py b/figures/notuning_wtuning.py index 864e925..7e415ea 100644 --- a/figures/notuning_wtuning.py +++ b/figures/notuning_wtuning.py @@ -108,19 +108,12 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost): if point["speedup"] > optimal_point["speedup"]: optimal_point = point -# if frontiers_data["data"].index(data) == 5: -# print filtered_data -# print optimal_point - local_rect_points=[] for point in filtered_data: if (optimal_point["speedup"] - point["speedup"]) < 0: print "something is wrong!" if (optimal_point["speedup"] - point["speedup"]) * 100 / optimal_point["speedup"] <= cluster_thresh: - # if optimal_point != point: - # print optimal_point - # print point data_to_plot.append(point) sample_points.append(frontiers_data["data"].index(data)) local_rect_points.append(point) @@ -140,7 +133,6 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost): current_sample = -1 length = 1 lengths = [] - prev_tr_sample = 0 energy = 0 performance = 0 aggr_energy = 0 @@ -186,11 +178,9 @@ def energy_time(args, budget_list, cluster_thresh, perf_cost, energy_cost): if index < len(samplepoints): if idx == samplepoints[index]-2: done = 1 - prev_tr_sample = samplepoints[index]-2 else: if idx == samplepoints[-2]: done = 1 - prev_tr_sample = samplepoints[-2] idx += 1 # When there are no common points, transition -- libgit2 0.22.2