Skip to content
Snippets Groups Projects
Commit 4510619f authored by Pedro L. Magalhães's avatar Pedro L. Magalhães
Browse files

Fix bug in revised plotting routine.

parent 333e7536
No related branches found
No related tags found
1 merge request!5Revised ResourcePrice class and methods. Added tests for problem...
......@@ -153,7 +153,7 @@ def plot_network_layout(network: Network,
(max_linewidth-min_linewidth)*
iteration/(len(list_sorted_dn)-1)
for iteration, _ in enumerate(list_sorted_dn)
] if len(list_sorted_dn) == 1 else [(max_linewidth+min_linewidth)/2]
] if len(list_sorted_dn) != 1 else [(max_linewidth+min_linewidth)/2]
# *************************************************************************
# *************************************************************************
......
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