Skip to content

Commit

Permalink
Merge pull request #31 from franzmaliszt/main
Browse files Browse the repository at this point in the history
Support pydicom 3
  • Loading branch information
LalithShiyam authored Sep 26, 2024
2 parents c35b4c9 + 6fd110f commit 486519a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nifti2dicom/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from nifti2dicom.constants import ANSI_ORANGE, ANSI_GREEN, ANSI_VIOLET, ANSI_RESET, TAGS_TO_EXCLUDE
from nifti2dicom.display import display_welcome_message
from pydicom.dataset import Dataset, FileMetaDataset
from pydicom.filewriter import write_file
from pydicom.filewriter import dcmwrite
from pydicom.sr.codedict import codes
from pydicom.uid import ExplicitVRLittleEndian, generate_uid
from rich.progress import Progress, track
Expand Down Expand Up @@ -225,7 +225,7 @@ def write_rgb_dicom_from_nifti(nifti_file_path, reference_dicom_series, output_d
ds.PatientName = metadata.PatientName
ds.PatientID = metadata.PatientID
ds.PatientBirthDate = metadata.PatientBirthDate
write_file(dicom_filename, ds, write_like_original=False)
dcmwrite(dicom_filename, ds, write_like_original=False)
progress.update(task, advance=1, description=f"[white] Writing RGB DICOM slices... [{i}/{total_slices}]")


Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
install_requires=[
'nibabel',
'SimpleITK',
'numpy',
'emoji',
'rich',
'pydicom<3.0',
'highdicom',
'pyfiglet'
],
Expand Down

0 comments on commit 486519a

Please sign in to comment.