diff --git a/requirements/tests.txt b/requirements/tests.txt index c5198370..42ef0167 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -12,4 +12,4 @@ xarray pillow django h5py -pydicom>=3.0 +pydicom diff --git a/setup.py b/setup.py index 78908930..79689b46 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,7 @@ def get_version(module='spyder_kernels'): 'pillow', 'django', 'h5py', - 'pydicom>=3.0' + 'pydicom' ] setup( diff --git a/spyder_kernels/utils/iofuncs.py b/spyder_kernels/utils/iofuncs.py index 37fccc7f..7da2828f 100644 --- a/spyder_kernels/utils/iofuncs.py +++ b/spyder_kernels/utils/iofuncs.py @@ -506,9 +506,9 @@ def load_dicom(filename): name = osp.splitext(osp.basename(filename))[0] try: - data = dicomio.dcmread(filename, force=True) + data = dicomio.read_file(filename, force=True) except TypeError: - data = dicomio.dcmread(filename) + data = dicomio.read_file(filename) arr = data.pixel_array return {name: arr}, None except Exception as error: