From 6d2bbb1d85d617c8a48cb9681dcee720ea8dace9 Mon Sep 17 00:00:00 2001
From: Lionel GUEZ <guez@lmd.ens.fr>
Date: Thu, 23 Jul 2020 16:02:51 +0200
Subject: [PATCH] Do not read the edgelist file on the command line

Revert commit e8a607e because now we are writing a file. We are
compelling the user to run this script in the directory containing the
input file so the output file does not get lost in the arborescence.
---
 Analysis/read_eddy_graph.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Analysis/read_eddy_graph.py b/Analysis/read_eddy_graph.py
index 2175982f..b7d3755b 100755
--- a/Analysis/read_eddy_graph.py
+++ b/Analysis/read_eddy_graph.py
@@ -2,12 +2,10 @@
 
 import networkx as nx
 import csv
-import sys
 
-if len(sys.argv) != 2: sys.exit("Required argument: edgelist-CSV-file")
 G = nx.DiGraph()
 
-with open(sys.argv[1]) as f:
+with open("edgelist.csv") as f:
     reader = csv.reader(f, delimiter = " ", skipinitialspace = True)
 
     # Skip title lines:
-- 
GitLab