From: Antonio Ospite Date: Mon, 21 Dec 2015 19:39:30 +0000 (+0100) Subject: CallDistanceTransceiver.py: reformat printing the symbols times X-Git-Url: https://git.ao2.it/SaveMySugar/python3-savemysugar.git/commitdiff_plain/f06c28ca9340c78923dc595af0730c5ebbc113a0?hp=c5cdc3bf83d7ee711483bbfb7b5e4d4190ba326c CallDistanceTransceiver.py: reformat printing the symbols times Have the same number of spaces on each line, this makes it easier to plot the data by fields using the space as a field delimiter. While at it also split the lines as they would be too long according to PEP8. --- diff --git a/src/savemysugar/CallDistanceTransceiver.py b/src/savemysugar/CallDistanceTransceiver.py index 343898c..9e765a7 100755 --- a/src/savemysugar/CallDistanceTransceiver.py +++ b/src/savemysugar/CallDistanceTransceiver.py @@ -102,23 +102,28 @@ class CallDistanceTransceiver(object): self.ring_uncertainty = ring_uncertainty self.symbol_uncertainty = symbol_distance / 2. - logging.debug("dot time: transmit: %.2f receive: (%.2f, %.2f)", + logging.debug("dot ---------> transmit time: %.2f " + "receive time: between %.2f and %.2f", self.dot_time, (self.dot_time - self.symbol_uncertainty), (self.dot_time + self.symbol_uncertainty)) - logging.debug("dash time: transmit: %.2f receive: (%.2f, %.2f)", + logging.debug("dash --------> transmit time: %.2f " + "receive time: between %.2f and %.2f", self.dash_time, (self.dash_time - self.symbol_uncertainty), (self.dash_time + self.symbol_uncertainty)) - logging.debug("signalspace time: transmit: %.2f receive: (%.2f, %.2f)", + logging.debug("singalspace -> transmit time: %.2f " + "receive time: between %.2f and %.2f", self.signalspace_time, (self.signalspace_time - self.symbol_uncertainty), (self.signalspace_time + self.symbol_uncertainty)) - logging.debug("wordspace time: transmit: %.2f receive: (%.2f, %.2f)", + logging.debug("wordspace ---> transmit time: %.2f " + "receive time: between %.2f and %.2f", self.wordspace_time, (self.wordspace_time - self.symbol_uncertainty), (self.wordspace_time + self.symbol_uncertainty)) - logging.debug("EOM time: transmit: %.2f receive: (%.2f, +inf)", + logging.debug("EOM ---------> transmit time: %.2f " + "receive time: between %.2f and inf", self.eom_time, (self.eom_time - self.symbol_uncertainty))