Skip to content

Commit

Permalink
Merge pull request #48 from QIMP-Team/extension-patch
Browse files Browse the repository at this point in the history
Update image_conversion.py
  • Loading branch information
LalithShiyam committed Sep 29, 2023
2 parents 9002a6e + c3dcb22 commit 17e209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falconz/image_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _convert_dicom_series(self):
os.remove(os.path.join(self.output_directory, json_file[0]))

# Scan the output directory for the generated nifti files
converted_files = [f for f in os.listdir(self.output_directory) if f.endswith('.nii.gz')]
converted_files = [f for f in os.listdir(self.output_directory) if (f.endswith('.nii.gz') or f.endswith('.nii'))]

for nifti_file in converted_files:
file_path = os.path.join(self.output_directory, nifti_file)
Expand Down

0 comments on commit 17e209d

Please sign in to comment.