Skip to content

Commit

Permalink
cleaner output
Browse files Browse the repository at this point in the history
  • Loading branch information
azhow committed Oct 22, 2017
1 parent 40aa071 commit cb0dbbf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network_disturbance_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ def main():
#List of edges to safeguard
ranked_edgs = rank_edges(edges, args.ranked_edges)
#Coupling call
print("#Routes:")
Coup.calculate_coupling(args.file, None, None, args.k, output=True)
#Gets the original graph
graph = export_to_igraph(nodes, edges, with_cost=True)
Expand All @@ -305,6 +306,7 @@ def main():
_, _, _, ue, so, PoA = assignment(iterations=args.iterations, edge_list=edges,
node_list=nodes, od_matrix=od_matrix)
#Coupling call
print("\n#Routes:")
Coup.calculate_coupling(get_network_name(net_name, changed_edges), None, None, args.k,
edge_list=edges, node_list=nodes, od_matrix=od_matrix, output=True)
#Gets the modified graph
Expand Down

0 comments on commit cb0dbbf

Please sign in to comment.