Skip to content

Commit

Permalink
Fix and add subset filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert van der Gugten committed Jun 20, 2016
1 parent 3a7cc0d commit a6e9819
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified config/subset_to_filenames.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion src/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def make_filename_to_subset_dict():
for subset in range(10):
files = glob.glob(in_folder+'subset{0}'.format(subset)+'/*.mhd')
print "Subset", subset, "n files", len(files)
files = map(lambda x: x.split(x.replace('.mhd',''),'/')[-1], files)
files = map(lambda x: x.replace('.mhd','').split('/')[-1], files)
subset_dict[subset] = files

joblib.dump(subset_dict, '../config/subset_to_filenames.pkl')
Expand Down

0 comments on commit a6e9819

Please sign in to comment.