From 71cf308b3d6398b3479090d5d5e0250ec8c566c7 Mon Sep 17 00:00:00 2001 From: Colm Talbot <colm.talbot@ligo.org> Date: Mon, 8 Oct 2018 17:05:20 +1100 Subject: [PATCH] add forcing resume=False for clean runs --- bilby/core/sampler/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bilby/core/sampler/__init__.py b/bilby/core/sampler/__init__.py index da6bdecd0..12f90306b 100644 --- a/bilby/core/sampler/__init__.py +++ b/bilby/core/sampler/__init__.py @@ -92,6 +92,8 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir', if clean: command_line_args.clean = clean + if command_line_args.clean: + kwargs['resume'] = False from . import implemented_samplers -- GitLab