Skip to content

Commit

Permalink
fix: remove deprecated pydicom.dicomdir.DicomDir variable type option
Browse files Browse the repository at this point in the history
  • Loading branch information
strixy16 committed Oct 23, 2024
1 parent 272078c commit 7ea5202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imgtools/utils/dicomutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_modality_metadata(dicom_data, modality: str):
return metadata


def all_modalities_metadata(dicom_data: Union[pydicom.dataset.FileDataset, pydicom.dicomdir.DicomDir]) -> Dict[str, T]:
def all_modalities_metadata(dicom_data: Union[pydicom.dataset.FileDataset]) -> Dict[str, T]:
metadata = get_modality_metadata(dicom_data, 'ALL')

if hasattr(dicom_data, 'PixelSpacing') and hasattr(dicom_data, 'SliceThickness'):
Expand Down

0 comments on commit 7ea5202

Please sign in to comment.