diff --git a/slate/slate.py b/slate/slate.py index b814fcb..025df8d 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -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)