Skip to content

Commit

Permalink
Merge pull request #1212 from thewtex/read-dicom-series-input
Browse files Browse the repository at this point in the history
fix(dicom): fix handling of input images in read_image_dicom_file_series
  • Loading branch information
thewtex authored Aug 26, 2024
2 parents 741eb51 + b9ace10 commit 823d965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def read_image_dicom_file_series_async(

kwargs = {}
if input_images is not None:
kwargs["inputImages"] = to_js(BinaryFile(input_images))
kwargs["inputImages"] = [to_js(BinaryFile(f)) for f in input_images]
if single_sorted_series:
kwargs["singleSortedSeries"] = to_js(single_sorted_series)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def read_image_dicom_file_series(
if len(input_images) > 0:
args.append('--input-images')
for value in input_images:
input_file = str(PurePosixPath(input_images))
input_file = str(PurePosixPath(value))
pipeline_inputs.append(PipelineInput(InterfaceTypes.BinaryFile, BinaryFile(value)))
args.append(input_file)

Expand Down

0 comments on commit 823d965

Please sign in to comment.