Skip to content

Commit

Permalink
FIX: read_file -> dcmread
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 3, 2023
1 parent 86a4bb0 commit 0067ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nibabel/dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __getattribute__(self, name):
return val

def dicom(self):
return pydicom.read_file(self.files[0])
return pydicom.dcmread(self.files[0])


def _get_subdirs(base_dir, files_dict=None, followlinks=False):
Expand Down Expand Up @@ -347,7 +347,7 @@ def _update_dir(c, dir, files, studies, series, storage_instances):

def _update_file(c, path, fname, studies, series, storage_instances):
try:
do = pydicom.read_file(f'{path}/{fname}')
do = pydicom.dcmread(f'{path}/{fname}')
except pydicom.filereader.InvalidDicomError:
logger.debug(' not a DICOM file')
return None
Expand Down

0 comments on commit 0067ab0

Please sign in to comment.