Skip to content
Snippets Groups Projects
Commit 01e2c321 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Rename `node_index` to n2

parent 1e40bc2a
No related branches found
Tags v0.11
No related merge requests found
......@@ -33,8 +33,8 @@ with open(f"edgelist_{orientation}.csv", "w", newline = '') as edgelist:
try:
# Try processing id_child_1 as an array:
for node_index in id_child_1:
writer.writerow((n1, node_index))
for n2 in id_child_1:
writer.writerow((n1, n2))
except TypeError:
# id_child_1 is a scalar int.
writer.writerow((n1, id_child_1))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment