Skip to content

Commit

Permalink
Remove treename kwarg if not using root format (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjma12 authored Apr 24, 2020
1 parent 26c381b commit e7adc2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gwsumm/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ def get_triggers(channel, etg, segments, config=GWSummConfigParser(),
read_kw['ifo'] = get_channel(channel).ifo
if etg.lower() in ['kw', 'kleinewelle']:
read_kw['selection'].append('channel == "%s"' % channel)
if etg.lower() in ['cwb'] and 'root' not in read_kw['format']:
read_kw.pop('treename')

# filter on segments
if 'timecolumn' in read_kw:
Expand Down

0 comments on commit e7adc2c

Please sign in to comment.