From 41647e321d80b36b2181fd8df0171e1c3abbfd27 Mon Sep 17 00:00:00 2001 From: GarethCabournDavies Date: Wed, 4 Dec 2024 08:58:58 -0800 Subject: [PATCH] thinko --- pycbc/workflow/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pycbc/workflow/core.py b/pycbc/workflow/core.py index 5eaace3aed5..d632bbf10ac 100644 --- a/pycbc/workflow/core.py +++ b/pycbc/workflow/core.py @@ -1283,6 +1283,7 @@ def _filename(self, ifo, description, extension, segment): start = int(segment[0]) end = int(math.ceil(segment[1])) if (end-start) > 0 and segment[0] > 0: + duration = end - start time_str = f"-{start}-{duration}" else: # This comes about when we haven't defined a time range for