This commit is contained in:
Dominik Moritz Roth 2023-07-09 17:19:37 +02:00
parent 303d0f2dfe
commit 02564de48b

View File

@ -139,10 +139,10 @@ class Slate():
def _reps_for_job(self, schedC, job_id):
schedulerC = copy.deepcopy(schedC)
num_jobs = self._calc_num_jobs(schedulerC)
reps = self.consume(schedulerC, 'repetitions', 1)
if job_id == None:
return list(range(0, reps))
num_jobs = self._calc_num_jobs(schedulerC)
reps_for_job = [[]] * num_jobs
for i in range(reps):
reps_for_job[i % num_jobs].append(i)