From 2337e0652d07fd9ba4a5b12af07839b7689a10a1 Mon Sep 17 00:00:00 2001 From: yuvrajjain2003 Date: Sat, 24 Feb 2024 23:55:35 -0500 Subject: [PATCH] Pass in n_threads from config file into preprocessing --- clpipe/fmri_preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clpipe/fmri_preprocess.py b/clpipe/fmri_preprocess.py index f254bc75..a52e9cc1 100644 --- a/clpipe/fmri_preprocess.py +++ b/clpipe/fmri_preprocess.py @@ -163,7 +163,7 @@ def fmriprep_process( threads_arg = "" if thread_command_active: logger.debug("Threads command: ACTIVE") - threads_arg = f"{N_THREADS_FLAG} " + batch_manager.config.n_threads_default + threads_arg = f"{N_THREADS_FLAG} " + config.fmriprep.n_threads fmriprep_args = { "bids_dir": config.fmriprep.bids_directory,