From 6113c14a7dad305b6c44a1ef8e4cb3563e558163 Mon Sep 17 00:00:00 2001 From: brennerd11 Date: Thu, 29 Oct 2015 15:52:50 +0100 Subject: [PATCH] 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. --- nipype/pipeline/plugins/slurmgraph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nipype/pipeline/plugins/slurmgraph.py b/nipype/pipeline/plugins/slurmgraph.py index 08abe4b394..f01a306e4c 100644 --- a/nipype/pipeline/plugins/slurmgraph.py +++ b/nipype/pipeline/plugins/slurmgraph.py @@ -53,6 +53,8 @@ def __init__(self, **kwargs): self._template = open(self._template).read() if 'sbatch_args' in kwargs['plugin_args']: self._sbatch_args = kwargs['plugin_args']['sbatch_args'] + else: # default argument for _sbatch_args + self._sbatch_args = '' if 'dont_resubmit_completed_jobs' in kwargs['plugin_args']: self._dont_resubmit_completed_jobs = kwargs['plugin_args']['dont_resubmit_completed_jobs'] else: