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

Do not specify the orientation

Do not specify the orientation as a command line argument of
`report_graph_int.py`. As in commit 292305e.
parent 87e80664
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
"""edgelist_anti.csv or edgelist_cyclo.csv must be in the current
directory."""
"""edgelist.csv must be in the current directory.
"""
import networkx as nx
import csv
......@@ -138,12 +139,9 @@ if __name__ == "__main__":
action = "store_true")
parser.add_argument("--interp", help = "Read interpolated eddies",
action = "store_true")
parser.add_argument("orientation", help ="Choose a graph",
choices = ["anti", "cyclo"])
args = parser.parse_args()
G = read_eddy_graph(f"edgelist_{args.orientation}.csv",
read_interp = args.interp)
G = read_eddy_graph("edgelist.csv", read_interp = args.interp)
if args.node is None:
H = G
......@@ -188,5 +186,5 @@ if __name__ == "__main__":
if args.gv:
A = to_eddy_agraph(H)
A.write(f"eddy_graph_{args.orientation}.gv")
print(f'Created file "eddy_graph_{args.orientation}.gv".')
A.write("eddy_graph.gv")
print('Created file "eddy_graph.gv".')
......@@ -44,11 +44,14 @@
"command":
[
"$src_dir/Overlap/Analysis/report_graph_int.py", "--gv",
"--merging", "anti"
"--merging"
],
"required":
[
"$tests_old_dir/Graph_from_Matlab_v6_anti/edgelist_anti.csv",
[
"$tests_old_dir/Graph_from_Matlab_v6_anti/edgelist_anti.csv",
"edgelist.csv"
],
"$tests_old_dir/Graph_from_Matlab_v6_anti/node_id_param.json"
]
}
......
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