Commits

Johannes Köster  committed 0d734e6 Merge

Merge branch 'master' of bitbucket.org:johanneskoester/snakemake

  • Participants
  • Parent commits 66b8419, b794f83

Comments (0)

Files changed (1)

File snakemake/scheduler.py

         u = [len(jobs[rule]) for rule in rules]
         b = [self._cores] + [val for val in self.workflow.resources.values()]
         a = list(map(self.rule_weight, rules))
+        c = list(map(self.rule_reward, rules))
 
         while True:
             # Step 2: compute effective capacities
                 break
                 
         # Solution is the list of jobs that was selected from the selected rules
-        solution = list(chain(*[jobs[rules[j]][:x_] for j, x_ in x]))
+        solution = list(chain(*[jobs[rules[j]][:x_] for j, x_ in enumerate(x)]))
         return solution
 
     def job_weight(self, job):