def type_detail(request, pk, type_name): data = get_data(pk) schema = build_schema(data,type_name) raw_stats = data.aggregate_stats(type_name)[0] stats = [] for t in range(len(raw_stats)): temp = [] for event in range(len(raw_stats[t])): temp.append(raw_stats[t,event]) stats.append((data.times[t],temp)) return render_to_response("lonestar/type_detail.html",{"type_name" : type_name, "jobid" : pk, "stats_data" : stats, "schema" : schema})
def type_detail(request, pk, type_name): data = get_data(pk) schema = data.get_schema(type_name).desc schema = string.replace(schema,',E',' ') schema = string.replace(schema,' ,',',').split() raw_stats = data.aggregate_stats(type_name)[0] stats = [] for t in range(len(raw_stats)): temp = [] for event in range(len(raw_stats[t])): temp.append(raw_stats[t,event]) stats.append((data.times[t],temp)) return render_to_response("stampede/type_detail.html",{"type_name" : type_name, "jobid" : pk, "stats_data" : stats, "schema" : schema})
def type_detail(request, pk, type_name): data = get_data(pk) schema = build_schema(data, type_name) raw_stats = data.aggregate_stats(type_name)[0] stats = [] for t in range(len(raw_stats)): temp = [] for event in range(len(raw_stats[t])): temp.append(raw_stats[t, event]) stats.append((data.times[t], temp)) return render_to_response("lonestar/type_detail.html", { "type_name": type_name, "jobid": pk, "stats_data": stats, "schema": schema })