File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11
11
'nibabel' ,
12
12
'pydicom' ,
13
13
'nipype' ,
14
+ 'pathlib' ,
14
15
]
15
16
16
17
TESTS_REQUIRES = [
Original file line number Diff line number Diff line change @@ -328,8 +328,8 @@ def clear_temp_dicoms(item_dicoms):
328
328
tmp = Path (op .commonprefix (item_dicoms ).parents [1 ])
329
329
except IndexError :
330
330
return
331
- if (op . dirname (tmp ) == tempfile .gettempdir ()
332
- and op . basename (tmp ).startswith ('heudiconvDCM' )
333
- and op .exists (tmp )):
331
+ if (str (tmp . parent ) == tempfile .gettempdir ()
332
+ and str (tmp . stem ).startswith ('heudiconvDCM' )
333
+ and op .exists (str ( tmp ) )):
334
334
# clean up directory holding dicoms
335
335
shutil .rmtree (tmp )
Original file line number Diff line number Diff line change 1
- .[full ]
1
+ .[all ]
2
2
# This is a dcmstack branch with changes for Python 3
3
3
# sent PR to main repo, TODO: check if merged
4
4
# https://github.com/ghisvail/dcmstack/pull/1
You can’t perform that action at this time.
0 commit comments