Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtrevor committed Aug 29, 2023
1 parent d1f9a77 commit ee0d860
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pycbc/workflow/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ def get_segments_file(workflow, name, option_name, out_dir, tags=None):

# Check for veto definer file
veto_definer = None
if cp.has_option("workflow-segments", "segments-veto-definer-url"):
veto_definer = save_veto_definer(workflow.cp, out_dir, [])
veto_tags = []
if 'veto' in workflow.cp.get_subsections('workflow-segments'):
veto_tags = ['veto']
if cp.has_option_tags("workflow-segments", "segments-veto-definer-url", veto_tags):
veto_definer = save_veto_definer(workflow.cp, out_dir, veto_tags)

# Check for provided server
server = "https://segments.ligo.org"
Expand Down

0 comments on commit ee0d860

Please sign in to comment.