Skip to content

Commit

Permalink
dont fail if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Jan 8, 2024
1 parent 56bf9a7 commit 23af990
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dicom_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import json
from pflog import pflog

__version__ = '1.0.2'
__version__ = '1.1.0'

DISPLAY_TITLE = r"""
_ _ _ __ _ _ _
Expand Down Expand Up @@ -77,7 +77,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)
for input_file, output_file in mapper:
# Read each input file from the input directory that matches the input filter specified
dcm_img = read_input_dicom(input_file, options.dicomFilter)
Expand Down

0 comments on commit 23af990

Please sign in to comment.