Skip to content

Commit 906062d

Browse files
committed
FIX: Call get_context from multiprocessing
1 parent 3a9ac48 commit 906062d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __init__(self, plugin_args=None):
140140
)
141141

142142
try:
143-
mp_context = mp.context.get_context(self.plugin_args.get("mp_context"))
143+
mp_context = mp.get_context(self.plugin_args.get("mp_context"))
144144
self.pool = ProcessPoolExecutor(
145145
max_workers=self.processors,
146146
initializer=process_initializer,

0 commit comments

Comments
 (0)