File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ def get_nipype_gitversion():
148
148
"filelock>=3.0.0" ,
149
149
"etelemetry>=0.2.0" ,
150
150
"looseversion!=1.2" ,
151
+ "puremagic" ,
151
152
]
152
153
153
154
TESTS_REQUIRES = [
Original file line number Diff line number Diff line change 7
7
from glob import glob
8
8
9
9
import nibabel as nb
10
- import imghdr
10
+ import puremagic
11
11
12
12
from .base import (
13
13
TraitedSpec ,
@@ -152,7 +152,7 @@ def _run_interface(self, runtime):
152
152
meta_filter = dcmstack .make_key_regex_filter (exclude_regexes , include_regexes )
153
153
stack = dcmstack .DicomStack (meta_filter = meta_filter )
154
154
for src_path in src_paths :
155
- if imghdr .what (src_path ) != "gif" :
155
+ if puremagic .what (src_path ) != "gif" :
156
156
src_dcm = pydicom .dcmread (src_path , force = self .inputs .force_read )
157
157
stack .add_dcm (src_dcm )
158
158
nii = stack .to_nifti (embed_meta = True )
You can’t perform that action at this time.
0 commit comments