nipype — Nipype execution settings#
Schema: NipypeConfig in src/thesis/core/config/validators.py. Drives NipypeExecutor and the global nipype.config overrides.
Field |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Base working directory. Each patient workflow gets a |
|
|
|
Optional crash-dump directory. When unset, Nipype defaults apply. |
|
|
|
Nipype execution plugin ( |
|
|
|
Plugin arguments passed to |
|
|
|
Stop execution after the first crashed node. |
|
|
|
Have Nipype clean intermediate outputs after workflow completion. |
|
|
|
Keep input files in the node working directories. |
|
|
|
Caching hash strategy. |
|
|
|
Enable Nipype’s resource profiler. |
Example#
nipype:
working_dir: work
crash_dir: work/crashes
plugin: MultiProc
plugin_args:
n_procs: 8
memory_gb: 32
stop_on_first_crash: false
remove_unnecessary_outputs: true
keep_inputs: true
hash_method: content
use_profiler: false
Notes#
Both per-workflow execution (via
NipypeExecutor) and the batch meta-workflow path (incli.py) callapply_nipype_execution_config(), which writes the relevant settings into the globalnipype.config. Without that, file-input hashing falls back to Nipype’s defaults — keephash_method: contentand let the framework apply the global update.The batch path also calls
build_nipype_status_callback()to translate node start/finish/failure events into the structured CLI progress UI.When
--max-workers N(or-j N) is passed, the CLI setsplugin_args["n_procs"] = N, overriding any YAML value.When
hardware.gpu_enabled: true, the CLI setsplugin_args.setdefault("n_gpu_procs", hardware.n_gpu_procs)andplugin_args.setdefault("n_gpus", hardware.n_gpus).