Skip to content

Commit

Permalink
Explicit variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale committed Jan 24, 2025
1 parent 4318525 commit 956c833
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/pygrb/pycbc_make_offline_grb_workflow
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ if wflow.cp.has_option("workflow-segments", "segments-vetoes"):
datafind_veto_files.append(veto_file)
# Check that the onsource is free from vetoes
for ifo in ifos:
segs = select_segments_by_definer(veto_file.storage_path, ifo=ifo)
segs.coalesce()
if onSrc[ifo].intersects(offSrc[ifo]-segs):
avail_segs = select_segments_by_definer(veto_file.storage_path, ifo=ifo)
avail_segs.coalesce()
vetoed_segs = offSrc[ifo] - avail_segs
if onSrc[ifo].intersects(vetoed_segs):
logging.warning("The onsource %s overlaps with vetoed time in %s.",
onSrc[ifo], ifo)
sys.exit()
sys.exit()

# Generate sky grid if needed
skygrid_file = None
Expand Down

0 comments on commit 956c833

Please sign in to comment.