Skip to content

Commit 8d4e08e

Browse files
committed
str file-path instead of as_file
1 parent 9011536 commit 8d4e08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPAC/anat_preproc/ants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def init_brain_extraction_wf( # noqa: PLR0913
296296

297297
# Set up spatial normalization
298298
settings_file = (f'antsBrainExtraction_{normalization_quality}.json' if use_laplacian else f'antsBrainExtractionNoLaplacian_{normalization_quality}.json')
299-
norm = pe.Node(Registration(from_file=as_file(files('CPAC.anat_preproc').joinpath('data').joinpath(settings_file))),
299+
norm = pe.Node(Registration(from_file=str(files('CPAC.anat_preproc').joinpath('data').joinpath(settings_file))),
300300
name='norm',
301301
n_procs=omp_nthreads,
302302
mem_gb=1.7,

0 commit comments

Comments
 (0)