...
This commit is contained in:
parent
303d0f2dfe
commit
02564de48b
@ -139,10 +139,10 @@ class Slate():
|
|||||||
|
|
||||||
def _reps_for_job(self, schedC, job_id):
|
def _reps_for_job(self, schedC, job_id):
|
||||||
schedulerC = copy.deepcopy(schedC)
|
schedulerC = copy.deepcopy(schedC)
|
||||||
|
num_jobs = self._calc_num_jobs(schedulerC)
|
||||||
reps = self.consume(schedulerC, 'repetitions', 1)
|
reps = self.consume(schedulerC, 'repetitions', 1)
|
||||||
if job_id == None:
|
if job_id == None:
|
||||||
return list(range(0, reps))
|
return list(range(0, reps))
|
||||||
num_jobs = self._calc_num_jobs(schedulerC)
|
|
||||||
reps_for_job = [[]] * num_jobs
|
reps_for_job = [[]] * num_jobs
|
||||||
for i in range(reps):
|
for i in range(reps):
|
||||||
reps_for_job[i % num_jobs].append(i)
|
reps_for_job[i % num_jobs].append(i)
|
||||||
|
Loading…
Reference in New Issue
Block a user