Skip to content

Commit f250f5c

Browse files
committed
FIX: Set DistributedPluginBase.refidx type correctly
1 parent d02750a commit f250f5c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: nipype/pipeline/plugins/base.py

+4-8
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,10 @@ def _generate_dependency_list(self, graph):
417417
import networkx as nx
418418

419419
self.procs, _ = topological_sort(graph)
420-
try:
421-
self.depidx = nx.to_scipy_sparse_matrix(
422-
graph, nodelist=self.procs, format="lil"
423-
)
424-
except:
425-
self.depidx = nx.to_scipy_sparse_matrix(graph, nodelist=self.procs)
426-
self.refidx = deepcopy(self.depidx)
427-
self.refidx.astype = np.int
420+
self.depidx = nx.to_scipy_sparse_matrix(
421+
graph, nodelist=self.procs, format="lil"
422+
)
423+
self.refidx = self.depidx.astype(int)
428424
self.proc_done = np.zeros(len(self.procs), dtype=bool)
429425
self.proc_pending = np.zeros(len(self.procs), dtype=bool)
430426

0 commit comments

Comments
 (0)