Skip to content

Commit

Permalink
enumerate + continue indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurTolley committed Jul 2, 2024
1 parent 42557bd commit e072210
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/live/pycbc_live_collate_triggers
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ with h5py.File(args.output_file, 'w') as destination:
if ifo not in destination:
destination.create_group(ifo)

for source_file in trigger_files:
file_count += 1
for file_count, source_file in enumerate(trigger_files):
trigger_file = os.path.basename(source_file)

start_time = float(trigger_file.split('-')[2])
Expand Down Expand Up @@ -161,7 +160,7 @@ with h5py.File(args.output_file, 'w') as destination:
}

if ('approximant' not in triggers) or (len(triggers['approximant']) == 0):
continue
continue

for name, dataset in triggers.items():
if name in destination[ifo]:
Expand Down

0 comments on commit e072210

Please sign in to comment.