Skip to content

Commit 71876b3

Browse files
committed
MNT: Drop networkx<2 hack
1 parent 12cd44f commit 71876b3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

nipype/pipeline/engine/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import numpy as np
2020

21-
from ... import logging, config, LooseVersion
21+
from ... import logging, config
2222
from ...utils.filemanip import (
2323
indirectory,
2424
relpath,
@@ -1076,11 +1076,7 @@ def make_field_func(*pair):
10761076
inode._id += ".%sI" % iterable_prefix
10771077

10781078
# 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()
1079+
subgraph = graph_in.subgraph(subnodes).copy()
10841080
graph_in = _merge_graphs(
10851081
graph_in,
10861082
subnodes,

0 commit comments

Comments
 (0)