From e411b206862b338fcfb85879679567b00ed87eb7 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Wed, 16 May 2018 08:25:45 +1000 Subject: [PATCH] Simplify logged sampler output - if cached don't print --- tupak/sampler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tupak/sampler.py b/tupak/sampler.py index 9a9b0fef5..c9f028c86 100644 --- a/tupak/sampler.py +++ b/tupak/sampler.py @@ -206,8 +206,9 @@ class Sampler(object): self.cached_result = None def log_summary_for_sampler(self): - logging.info("Using sampler {} with kwargs {}".format( - self.__class__.__name__, self.kwargs)) + if self.cached_result is False: + logging.info("Using sampler {} with kwargs {}".format( + self.__class__.__name__, self.kwargs)) class Nestle(Sampler): -- GitLab