Skip to content

Commit

Permalink
Replace depreciated pydcm functions
Browse files Browse the repository at this point in the history
  • Loading branch information
wtclarke authored Sep 23, 2024
1 parent fa4e4f4 commit cf5bea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec2nii/spec2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ def auto(self, args):
sorted(args.file.rglob('*.IMA')) + \
sorted(args.file.rglob('*.ima')) + \
sorted(args.file.rglob('*.dcm'))
file = pdcm.read_file(files_in[0])
file = pdcm.dcmread(files_in[0])
else:
file = pdcm.read_file(args.file)
file = pdcm.dcmread(args.file)

manufacturer = file.Manufacturer
setattr(args, 'tag', None)
Expand Down

0 comments on commit cf5bea0

Please sign in to comment.