Skip to content

Commit

Permalink
Better simplification.
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
DimitriPapadopoulos and effigies authored Oct 6, 2024
1 parent 549827f commit 5f1b823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nipype/interfaces/cmtk/nx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 5f1b823

Please sign in to comment.