Skip to content

Commit 1c5aabc

Browse files
committed
Merge pull request #13 from hanke/enh/graphsubmission
Tiny bugfix for the CondorDAGMan plugin (plus a merged master branch, sorry)
2 parents 993deb3 + e5f639d commit 1c5aabc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

nipype/pipeline/plugins/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ def create_pyscript(node, updatehash=False, store_exception=True):
115115
batchdir = '%s'
116116
try:
117117
from nipype import config, logging
118-
from ordereddict import OrderedDict
118+
import sys
119+
if not sys.version_info < (2, 7):
120+
from ordereddict import OrderedDict
119121
config_dict=%s
120122
config.update_config(config_dict)
121123
config.update_matplotlib()

nipype/pipeline/plugins/dagman.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, **kwargs):
3535
self._template = "universe = vanilla\nnotification = Never"
3636
self._submit_specs = ""
3737
self._dagman_args = ""
38-
if 'plugin_args' in kwargs:
38+
if 'plugin_args' in kwargs and not kwargs['plugin_args'] is None:
3939
plugin_args = kwargs['plugin_args']
4040
if 'template' in plugin_args:
4141
self._template = plugin_args['template']

0 commit comments

Comments
 (0)