Skip to content
Snippets Groups Projects
Commit ded6025f authored by CHAD RICHARD HANNA's avatar CHAD RICHARD HANNA
Browse files

O3_chunks: use double time to define boundaries

parent 38fc6510
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,9 @@ for ifo1 in ifos:
except KeyError:
doublesegs[ifo1] = seglistdicts.intersection((ifo1, ifo2))
# This is the set of segments when at least two ifos were on
doublesegsunion = doublesegs.union(doublesegs.keys())
# This is the set of segments when at least one ifo was on
segs = seglistdicts.union(seglistdicts.keys())
......@@ -93,7 +96,11 @@ def enoughtime(seglist, start, end):
# that we only define boundaries when *no* ifos are on
# 2000000000 is a placeholder to define a segment end.
chunks = segments.segmentlist([segments.segment(segs[0][0], 2000000000)])
for seg in segs:
# This places boundaries when only one ifo or less was on
for seg in doublesegsunion:
# this line would only take boundaries when no ifo was on
#for seg in segs:
start = seg[0]
end = seg[1]
if all([enoughtime(s, chunks[-1][0], end) for s in doublesegs.values()]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment