Skip to content

Commit b42f6a4

Browse files
brennerd11effigies
authored andcommitted
FIX: Default value for sbatch_args (SLURMGraph)
Added a default value for self._sbatch_args in the SLURMGraph Plugin. This was not present and caused nipype to abort when sbatch_args was not specified when running the plugin.
1 parent c91b893 commit b42f6a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/pipeline/plugins/slurmgraph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def __init__(self, **kwargs):
5555
self._template = open(self._template).read()
5656
if 'sbatch_args' in kwargs['plugin_args']:
5757
self._sbatch_args = kwargs['plugin_args']['sbatch_args']
58+
else: # default argument for _sbatch_args
59+
self._sbatch_args = ''
5860
if 'dont_resubmit_completed_jobs' in kwargs['plugin_args']:
5961
self._dont_resubmit_completed_jobs = kwargs['plugin_args'][
6062
'dont_resubmit_completed_jobs']

0 commit comments

Comments
 (0)