Update test.py

This commit is contained in:
ltcptgeneral 2019-03-20 22:15:31 -05:00
parent 7c96233f5b
commit 5e13ca3b5e

View File

@ -29,8 +29,10 @@ quant_keys = []
list_teams = ["2022", "16", "2451"] list_teams = ["2022", "16", "2451"]
out = [] out = []
temp = [] #temp = []
var = [] var = []
measured_vars_total = []
team_out = {}
for i in range(len(full)): for i in range(len(full)):
for j in range(len(full[i])): for j in range(len(full[i])):
@ -41,21 +43,30 @@ for i in range(len(full)):
if full[i][j].get(key).get('teamDBRef')[5:] in list_teams: if full[i][j].get(key).get('teamDBRef')[5:] in list_teams:
var = [] var = []
measured_vars = []
for k in range(len(list(full[i][j].get(key).keys()))): for k in range(len(list(full[i][j].get(key).keys()))):
individual_keys = list(full[i][j].get(key).keys()) individual_keys = list(full[i][j].get(key).keys())
#print(individual_keys) #print(individual_keys)
measured_vars.append(individual_keys[k])
var.append(full[i][j].get(key).get(individual_keys[k])) var.append(full[i][j].get(key).get(individual_keys[k]))
temp.append(var) team_out[full[i][j].get(key).get('teamDBRef')] = var
out.append(var)
measured_vars_total.append(measured_vars)
print(quant_keys)
print(out) #temp.append(var)
out.append(var)
print(quant_keys)
print(measured_vars_total)
print(team_out)
temp = []
#for i in range(len(measured_vars)):
#for j in range(len)
#for k in range(len(list(full[i][j].get(key).keys()))): #for k in range(len(list(full[i][j].get(key).keys()))):