We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5e96c commit 7ed1368Copy full SHA for 7ed1368
nipype/pipeline/engine/utils.py
@@ -18,7 +18,7 @@
18
19
import numpy as np
20
21
-from ... import logging, config, LooseVersion
+from ... import logging, config
22
from ...utils.filemanip import (
23
indirectory,
24
relpath,
@@ -1076,11 +1076,7 @@ def make_field_func(*pair):
1076
inode._id += ".%sI" % iterable_prefix
1077
1078
# merge the iterated subgraphs
1079
- # dj: the behaviour of .copy changes in version 2
1080
- if LooseVersion(nx.__version__) < LooseVersion("2"):
1081
- subgraph = graph_in.subgraph(subnodes)
1082
- else:
1083
- subgraph = graph_in.subgraph(subnodes).copy()
+ subgraph = graph_in.subgraph(subnodes).copy()
1084
graph_in = _merge_graphs(
1085
graph_in,
1086
subnodes,
0 commit comments