diff --git a/osaca/eu_sched.py b/osaca/eu_sched.py index f6d3e40..17d4a61 100755 --- a/osaca/eu_sched.py +++ b/osaca/eu_sched.py @@ -75,7 +75,8 @@ class Scheduler(object): if(entry.TP.values[0] == 0): t_all = () if(variations == 1): - occ_ports[i] = [entry.TP.values[0] for x in range(self.ports)] + for j in tup[0]: + occ_ports[i][j] = entry.TP.values[0] else: for j in range(0, self.ports): occ_ports[i][j] = t_all.count(j) / variations