From 2f5f4ab8cb05f97f48627ca1a918ce79cff3278e Mon Sep 17 00:00:00 2001 From: ejhigson Date: Fri, 18 May 2018 13:39:01 +0100 Subject: [PATCH] minor tidying and version bump --- dyPolyChord/run_dynamic_ns.py | 12 ++++++------ setup.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dyPolyChord/run_dynamic_ns.py b/dyPolyChord/run_dynamic_ns.py index 78c3552..98d0dad 100644 --- a/dyPolyChord/run_dynamic_ns.py +++ b/dyPolyChord/run_dynamic_ns.py @@ -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 @@ -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 diff --git a/setup.py b/setup.py index 3758728..cd568dc 100644 --- a/setup.py +++ b/setup.py @@ -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).'),