Fix integration of python with the java project
This commit is contained in:
parent
2db4e91962
commit
e7b9f75035
@ -11,7 +11,7 @@ plugins {
|
||||
}
|
||||
|
||||
run {
|
||||
args = ["1000", "250"]
|
||||
args = ["10000", "50"]
|
||||
}
|
||||
|
||||
application {
|
||||
|
12
plot/main.py
12
plot/main.py
@ -3,15 +3,7 @@ import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
"""
|
||||
data = pd.read_csv("data.csv", delimiter=';').to_numpy()
|
||||
|
||||
tick = data[:, 0]
|
||||
|
||||
rb = data[:, 4]
|
||||
|
||||
"""
|
||||
nb_files = os.listdir('export/')
|
||||
nb_files = os.listdir(".." + os.sep + "export")
|
||||
|
||||
size = len(nb_files)
|
||||
|
||||
@ -19,7 +11,7 @@ size = len(nb_files)
|
||||
averages = np.empty((size, 2))
|
||||
nb = 0
|
||||
for i in nb_files:
|
||||
data = pd.read_csv("export" + os.sep + i, delimiter=';').to_numpy()
|
||||
data = pd.read_csv(".." + os.sep + "export" + os.sep + i, delimiter=';').to_numpy()
|
||||
rb = data[:, 4]
|
||||
|
||||
total = 0.0
|
||||
|
@ -28,7 +28,7 @@ public class ProportionalFair extends Scheduler {
|
||||
}
|
||||
}
|
||||
avg = avg / (bandwidthTable.length * bandwidthTable[0].length);
|
||||
averageBandwiths.add(new Double(avg));
|
||||
averageBandwiths.add(avg);
|
||||
}
|
||||
User selectedUser = null;
|
||||
for(int ts = 0; ts < 2; ts++){
|
||||
|
Reference in New Issue
Block a user