Skip to content

Commit

Permalink
Bugfix for empty trigger tables (#396)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Goetz <evan.goetz@ligo.org>
  • Loading branch information
eagoetz and Evan Goetz authored Feb 14, 2024
1 parent 21b3e62 commit 9db79ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gwsumm/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ def get_triggers(channel, etg, segments, config=GWSummConfigParser(),
if 'fstart' in columns and 'fend' in columns:
for colval in ['bandwidth', 'central_freq']:
if colval not in columns:
columns.extend(colval)
columns.extend([colval])
if ('tstart' in columns and
'tend' in columns and
'duration' not in columns):
columns.extend('duration')
columns.extend(['duration'])
tab = EventTable(names=columns)
else: # map to LIGO_LW table with full column listing
tab = EventTable(lsctables.New(TableClass))
Expand Down

0 comments on commit 9db79ee

Please sign in to comment.