From 337e26941d8fb2aba2fc76c486e269005f9986b2 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 24 Dec 2015 10:45:24 +0100 Subject: [PATCH] measure_ring_distance.py: improve output messages --- src/measure_ring_distance.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/measure_ring_distance.py b/src/measure_ring_distance.py index c5c34fd..e89b35b 100755 --- a/src/measure_ring_distance.py +++ b/src/measure_ring_distance.py @@ -46,12 +46,10 @@ def on_ring(): Rings.count - 1, distance) print() print("Other ring") - print("distance: %f" % distance) - print("min_distance: %f" % Rings.min_distance) - print("max_distance: %f" % Rings.max_distance) - print("average_distance: %f" % Rings.average_distance) - uncertainty = (Rings.max_distance - Rings.min_distance) / 2. - print("uncertainty: %f" % uncertainty) + print("Ring distance: %f" % distance) + print("Min ring distance: %f" % Rings.min_distance) + print("Max ring distance %f" % Rings.max_distance) + print("Average distance: %f" % Rings.average_distance) def measure_ring_distance(ingoing_port, outgoing_port, destination_number): -- 2.1.4