Skip to content

Commit

Permalink
Update converter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
LalithShiyam authored Apr 10, 2024
1 parent eaaef7c commit a8ad90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nifti2dicom/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def process_slice(idx, slice, output_dir, nifti_img):
image_array_slice = sitk.GetArrayFromImage(nifti_img)[idx]
filename = f"slice_{idx}.dcm"
save_slice(slice, image_array_slice, series_description, filename, output_dir, slice.Modality)
progress.update(task, advance=1, description=f"[white] Writing RGB DICOM slices... [{idx}/{total_slices}]")
progress.update(task, advance=1, description=f"[white] Writing DICOM slices... [{idx}/{total_slices}]")

with ThreadPoolExecutor() as executor:
for idx, slice in enumerate(dicom_slices):
Expand Down

0 comments on commit a8ad90b

Please sign in to comment.