From 5f1b8230ecd96788708e8cf59a693390b3c0581c Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:26:12 +0200 Subject: [PATCH] Better simplification. Co-authored-by: Chris Markiewicz --- nipype/interfaces/cmtk/nx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipype/interfaces/cmtk/nx.py b/nipype/interfaces/cmtk/nx.py index fe76dcb7b3..53706389aa 100644 --- a/nipype/interfaces/cmtk/nx.py +++ b/nipype/interfaces/cmtk/nx.py @@ -183,7 +183,7 @@ def average_networks(in_files, ntwk_res_file, group_id): avg_edges = avg_ntwk.edges() for edge in avg_edges: data = avg_ntwk.edge[edge[0]][edge[1]] - for key in list(data.keys()): + for key in data: if key != "count": edge_dict[key] = np.zeros( (avg_ntwk.number_of_nodes(), avg_ntwk.number_of_nodes())