diff --git a/lib/plant.py b/lib/plant.py index c1fabfd..2d50031 100644 --- a/lib/plant.py +++ b/lib/plant.py @@ -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): diff --git a/lib/routing.py b/lib/routing.py index 1a65880..231b930 100644 --- a/lib/routing.py +++ b/lib/routing.py @@ -178,6 +178,8 @@ if __name__ == "__main__": print(to_json(cable_paths['errors_sensors'])) print("failed dists:") print(to_json(cable_paths['errors_dists'])) + print("failed tunnels:") + print(to_json(cable_paths['errors_tunnels'])) # Ausgabe schreiben if args.write: