From cc0ca10a24b70e35db5e2254372094f15f39fdfc Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Sun, 6 Nov 2016 14:42:11 +0100 Subject: [PATCH] Adds Tcoh time to log --- pyfstat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyfstat.py b/pyfstat.py index 52be961..011faef 100755 --- a/pyfstat.py +++ b/pyfstat.py @@ -1957,8 +1957,10 @@ class MCMCFollowUpSearch(MCMCSemiCoherentSearch): loglargs=(self.search,), betas=self.betas, a=proposal_scale_factor) - logging.info('Running {}/{} with {} steps and {} nsegs'.format( - j+1, len(self.nsteps), (nburn, nprod), nseg)) + logging.info(('Running {}/{} with {} steps and {} nsegs ' + '(Tcoh={:1.2f} days)').format( + j+1, len(self.nsteps), (nburn, nprod), nseg, + (self.maxStartTime-self.minStartTime)/nseg/86400)) sampler = self.run_sampler_with_progress_bar( sampler, nburn+nprod, p0) logging.info("Mean acceptance fraction: {}" -- GitLab