diff --git a/trial_json.py b/trial_json.py index b35dca80738b916147b97fe0f0102718c15e4b88..054e1a882477d15f1317638eaf971d8c963181e7 100644 --- a/trial_json.py +++ b/trial_json.py @@ -102,6 +102,8 @@ for p in range(0,len(data_pumps)): eta_pumpe=list(findkeys(data_pumps[p], attribut))[0]/100 eta_motor=list(findkeys(data_motors[m], attribut))[0]/100 eta_ges = calculate_efficiency(eta_pumpe, eta_motor) - dataset[count] = [eta_pumpe,eta_motor,eta_ges] + scenario = "Szenario_" + str(count) + dataset[scenario] = [eta_pumpe,eta_motor,eta_ges] + dataset.index = ["eta_pumpe","eta_motor","eta_ges"] count +=1 print(p,m,eta_ges)