From 68c03a03fb5dfd1845c428dc4d072c2602d0caeb Mon Sep 17 00:00:00 2001 From: CHAD RICHARD HANNA <crh184@psu.edu> Date: Thu, 30 May 2019 19:26:04 -0400 Subject: [PATCH] O3_chunks: fix live time calc --- gstlal-inspiral/share/O3/O3_chunks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gstlal-inspiral/share/O3/O3_chunks b/gstlal-inspiral/share/O3/O3_chunks index 1533684ccd..4a3975f348 100755 --- a/gstlal-inspiral/share/O3/O3_chunks +++ b/gstlal-inspiral/share/O3/O3_chunks @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2018 Ryan Magee 2019 Ryan Magee, Duncan Meacher and Chad Hanna +# Copyright (C) 2018 Ryan Magee # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -105,5 +105,5 @@ print "%6s%12s%12s%12s" % ("chunk", "start", "end", "livetime") # Skip the last because it won't be complete yet, this is in addition to the # warning above. The warning above still applies for n, (chunk) in enumerate(chunks[:-1]): - print "%6s%12s%12s%12s" % (n+1, chunk[0], chunk[1], abs(chunk)) + print "%6s%12s%12s%12s" % (n+1, chunk[0], chunk[1], abs(segments.segmentlist([chunk]) & segs)) -- GitLab