Skip to content

Commit 0164c53

Browse files
committed
fix: use str2bool instead of string
1 parent 165788d commit 0164c53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/pipeline/plugins/multiproc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ def _send_procs_to_workers(self, updatehash=False, graph=None):
223223
key=lambda item: (self.procs[item]._interface.estimated_memory_gb,
224224
self.procs[item]._interface.num_threads))
225225

226-
if config['execution']['profile_runtime']:
226+
if str2bool(config['execution']['profile_runtime']):
227227
logger.debug('Free memory (GB): %d, Free processors: %d',
228228
free_memory_gb, free_processors)
229229

230230
# While have enough memory and processors for first job
231231
# Submit first job on the list
232232
for jobid in jobids:
233-
if config['execution']['profile_runtime']:
233+
if str2bool(config['execution']['profile_runtime']):
234234
logger.debug('Next Job: %d, memory (GB): %d, threads: %d' \
235235
% (jobid,
236236
self.procs[jobid]._interface.estimated_memory_gb,

0 commit comments

Comments
 (0)