From a560d6ce7d6059643603f2a135409486dc84d974 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Fri, 4 Jan 2019 09:36:02 +1100 Subject: [PATCH] Adds a simple print out of the label and outdir before commencing For scripts with multiple `run_sampler` commands, it isn't always clear which stage one is at. This clearly prints that out and will be useful for debugging. --- bilby/core/sampler/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bilby/core/sampler/__init__.py b/bilby/core/sampler/__init__.py index 358cd578c..f270dbf69 100644 --- a/bilby/core/sampler/__init__.py +++ b/bilby/core/sampler/__init__.py @@ -90,6 +90,10 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir', An object containing the results """ + logger.info( + "Running for label '{}', output will be saved to '{}'".format( + label, outdir)) + if clean: command_line_args.clean = clean if command_line_args.clean: -- GitLab