From a6e73bd2f0c185c6bc79b0ec939bcd8b084c8a00 Mon Sep 17 00:00:00 2001 From: Jan Laukemann Date: Wed, 1 Nov 2017 23:49:30 +0100 Subject: [PATCH] small bugfix --- osaca/eu_sched.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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