Skip to content

Commit

Permalink
Merge pull request #140 from sblunt/fix-multiprocessing
Browse files Browse the repository at this point in the history
Add random seed to child processes
  • Loading branch information
sblunt committed Sep 30, 2019
2 parents f2a8064 + 8e9456b commit 41e317d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orbitize/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def _sampler_process(self, output, total_orbits, num_cores, num_samples=10000, V
size: total_orbits
"""

np.random.seed()

n_orbits_saved = 0
output_orbits = np.empty((total_orbits, len(self.priors)))
Expand Down

0 comments on commit 41e317d

Please sign in to comment.