From 0d7b02a57b2493612b75fdd14a2a0f98a276ad14 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 29 Jul 2023 14:39:30 +0200 Subject: [PATCH] [WIP] debugging --- slate/slate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slate/slate.py b/slate/slate.py index 7b5d550..22d97e9 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -177,12 +177,14 @@ class Slate(): def _reps_for_job(self, schedC, job_id, num_conv_versions): schedulerC = copy.deepcopy(schedC) num_jobs = self._calc_num_jobs(schedulerC, num_conv_versions) - reps = self.consume(schedulerC, 'repetitions', 1) + 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 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):