Skip to content

Commit

Permalink
don't fail if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Jan 8, 2024
1 parent 61dfd77 commit 8412275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dicom_repack.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import pydicom as dicom
import os
from pflog import pflog
__version__ = '1.1.3'
__version__ = '1.1.4'

DISPLAY_TITLE = r"""
_ _ _ _
Expand Down Expand Up @@ -73,7 +73,7 @@ def main(options: Namespace, inputdir: Path, outputdir: Path):
#
# Refer to the documentation for more options, examples, and advanced uses e.g.
# adding a progress bar and parallelism.
mapper = PathMapper.file_mapper(inputdir, outputdir, glob=f"**/*.{options.fileFilter}")
mapper = PathMapper.file_mapper(inputdir, outputdir, glob=f"**/*.{options.fileFilter}", fail_if_empty=False)
file_sets = {} # Contains all unique dirs along with the file list
for input_file, output_file in mapper:
input_file_dir = str(input_file).replace(input_file.name,'')
Expand Down

0 comments on commit 8412275

Please sign in to comment.