Skip to content

Commit

Permalink
🐛 when skipping files
Browse files Browse the repository at this point in the history
  • Loading branch information
dionhaefner committed Oct 10, 2019
1 parent 9aca05d commit 7cdd7f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fowd/cdip.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ def handle_result(i, result, pbar):

logger.info('Processing done')

# remove skipped files
wave_records = [subrecord for subrecord in wave_records if subrecord is not None]

if not wave_records:
logger.warn('Processed no files - no output to write')
return

# concatenate subrecords
wave_records = {
key: np.concatenate([subrecord[key] for subrecord in wave_records])
Expand Down

0 comments on commit 7cdd7f3

Please sign in to comment.