File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 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():
148148 "filelock>=3.0.0" ,
149149 "etelemetry>=0.2.0" ,
150150 "looseversion!=1.2" ,
151+ "puremagic" ,
151152]
152153
153154TESTS_REQUIRES = [
Original file line number Diff line number Diff line change 77from glob import glob
88
99import nibabel as nb
10- import imghdr
10+ import puremagic
1111
1212from .base import (
1313 TraitedSpec ,
@@ -152,7 +152,7 @@ def _run_interface(self, runtime):
152152 meta_filter = dcmstack .make_key_regex_filter (exclude_regexes , include_regexes )
153153 stack = dcmstack .DicomStack (meta_filter = meta_filter )
154154 for src_path in src_paths :
155- if imghdr .what (src_path ) != "gif" :
155+ if puremagic .what (src_path ) != "gif" :
156156 src_dcm = pydicom .dcmread (src_path , force = self .inputs .force_read )
157157 stack .add_dcm (src_dcm )
158158 nii = stack .to_nifti (embed_meta = True )
You can’t perform that action at this time.
0 commit comments