From 01e2c321fee48fda38fbd8fbda60140dce355feb Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Wed, 10 Mar 2021 23:21:31 +0100 Subject: [PATCH] Rename `node_index` to n2 --- Convert_Matlab/overlap_v6.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Convert_Matlab/overlap_v6.py b/Convert_Matlab/overlap_v6.py index babb9217..4baa1582 100755 --- a/Convert_Matlab/overlap_v6.py +++ b/Convert_Matlab/overlap_v6.py @@ -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)) -- GitLab