From 4510619f41241a255527980510c710e4d94cb43f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pedro=20L=2E=20Magalh=C3=A3es?=
 <pedro.magalhaes@uni-bremen.de>
Date: Wed, 14 Feb 2024 11:40:20 +0100
Subject: [PATCH] Fix bug in revised plotting routine.

---
 src/topupopt/data/dhn/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/topupopt/data/dhn/utils.py b/src/topupopt/data/dhn/utils.py
index ba99e70..df6aee9 100644
--- a/src/topupopt/data/dhn/utils.py
+++ b/src/topupopt/data/dhn/utils.py
@@ -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]
         
     # *************************************************************************
     # *************************************************************************
-- 
GitLab