diff --git a/Convert_Matlab/overlap_v6.py b/Convert_Matlab/overlap_v6.py index babb921778688ec717ef78823c723a7df41897b3..4baa1582b66b6c4d459949d380612ab0acef3da3 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))