Skip to content

Commit

Permalink
Pydicom compatibility (#149)
Browse files Browse the repository at this point in the history
* Update requirements.yml

* Update requirements.yml

* Replace depreciated pydcm functions
  • Loading branch information
wtclarke authored Sep 23, 2024
1 parent 9fcc0af commit 54dff62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
dependencies:
- numpy>=1.26
- nibabel
- pydicom
- pydicom==3.*;python_version>="3.10"
- pydicom==2.4.*;python_version<"3.10"
- pyMapVBVD>=0.6.0
- scipy==1.13.*
- brukerapi>=0.1.8
Expand Down
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 54dff62

Please sign in to comment.