small fix. Weigth wurde nicht als float an networx Modul übergeben. Dadurch wurde durch eine Exception das Program nicht beendet

This commit is contained in:
2025-05-27 18:58:38 +02:00
parent d0b3ee7610
commit 192c7361c1
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ class Anlage():
def get_tunnel_length(self, tname: str):
if tname in self._tunnels:
return self._tunnel_lengths[tname]
return float(self._tunnel_lengths[tname])
raise Exception("Tunnel not found")
def add_tunnels(self, tunnels:dict):