Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed May 8, 2021
1 parent 374de63 commit f137e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hq/cli/run_thejoker_again.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def rerun_thejoker(run_path, pool, seed=None):
# Deterministic random number seeds:
seedseq = np.random.SeedSequence(seed)
seeds = seedseq.spawn(len(tasks))
tasks = [t.update({'seed': s}) for t, s in zip(tasks, seeds)]
for t, s in zip(tasks, seeds):
t['seed'] = s

logger.info(f"Done preparing tasks: {len(tasks)} tasks")
for r in pool.map(worker, tasks, callback=callback):
Expand Down

0 comments on commit f137e6b

Please sign in to comment.