Skip to content

Commit

Permalink
bugfix: add sources now does not overwrite previously added sources
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminum committed Aug 11, 2017
1 parent d3e30e0 commit e8af539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/depthmotionnet/datareader/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def add_sources(params, dataset_files, weight, normalize=True, concatenate=False
If True adds only a single source that contains all files.
"""
params['source'] = []
if not 'source' in params:
params['source'] = []

if concatenate:
# generate a single source with all paths
Expand Down

0 comments on commit e8af539

Please sign in to comment.