Skip to content

Commit

Permalink
minor tidying and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
ejhigson committed May 18, 2018
1 parent 19d2722 commit 2f5f4ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions dyPolyChord/run_dynamic_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,14 @@ def run_and_save_resumes(run_polychord, settings_dict_in, init_step,
Random seed. This is incremented after each run so it can be used
when resuming without generating correlated points.
"""
# set up rank if running with MPI
settings_dict = copy.deepcopy(settings_dict_in)
# set up rank if running with MPI
if comm is not None:
# Define variables for rank != 0
step_ndead = None
resume_outputs = None
final_seed = None
# Get rank
rank = comm.Get_rank()
else:
rank = 0
Expand Down Expand Up @@ -372,9 +377,4 @@ def run_and_save_resumes(run_polychord, settings_dict_in, init_step,
add_points = comm.bcast(add_points, root=0)
if rank == 0:
final_seed = settings_dict['seed']
else:
# Define variables for other ranks
step_ndead = None
resume_outputs = None
final_seed = None
return step_ndead, resume_outputs, final_seed
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_long_description():


setuptools.setup(name='dyPolyChord',
version='0.0.0',
version='0.0.1',
description=(
'Super fast dynamic nested sampling with '
'PolyChord (python, C++ and Fortran likelihoods).'),
Expand Down

0 comments on commit 2f5f4ab

Please sign in to comment.