From 7ed0c8fcc5908ccf7f07ee9269bd4e09500509b3 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 29 Jul 2023 14:53:19 +0200 Subject: [PATCH] Fixed bug: Jobs working on wrong reps --- slate/slate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 22d97e9..0e9b902 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -180,11 +180,9 @@ class Slate(): reps = self.consume(schedulerC, 'repetitions', self.consume(schedulerC, 'reps_per_version', 1)*num_conv_versions) if job_id == None: return list(range(0, reps)) - reps_for_job = [[]] * num_jobs + reps_for_job = [[] for i in range(num_jobs)] for i in range(reps): reps_for_job[i % num_jobs].append(i) - print('reps_for_job', reps_for_job) - print(f'reps_for_job[{job_id}]', reps_for_job[job_id]) return reps_for_job[job_id] def run_local(self, filename, name, job_id, sweep_id):