summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4ec1ed7)
This fixes wrong-import-order message from pylint.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
# setup time" (e.g. 17) and then send a message from the Android app while
# measuring the times with this program.
# setup time" (e.g. 17) and then send a message from the Android app while
# measuring the times with this program.
-from savemysugar.cumulative_average import cumulative_average
-from savemysugar.Modem import Modem
import subprocess
import time
import subprocess
import time
+from savemysugar.cumulative_average import cumulative_average
+from savemysugar.Modem import Modem
+
class Ring(object):
time = -1
class Ring(object):
time = -1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from savemysugar.cumulative_average import cumulative_average
-from savemysugar.Modem import Modem
import subprocess
import time
import subprocess
import time
+from savemysugar.cumulative_average import cumulative_average
+from savemysugar.Modem import Modem
+
def measure_call_setup_time_to_android(outgoing_port, destination_number):
outgoing_modem = Modem(outgoing_port)
def measure_call_setup_time_to_android(outgoing_port, destination_number):
outgoing_modem = Modem(outgoing_port)
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
from savemysugar.Modem import Modem
from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
from savemysugar.Modem import Modem
# TODO: set the logging level from the command line
FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
# TODO: set the logging level from the command line
FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import logging
+import time
# This hack allows importing local modules also when
# __name__ == "__main__"
# This hack allows importing local modules also when
# __name__ == "__main__"
from MorseDistanceModulator import MorseDistanceModulator
from MorseTranslator import MorseTranslator
from MorseDistanceModulator import MorseDistanceModulator
from MorseTranslator import MorseTranslator
-import logging
-import time
-
def log_symbol(distance, symbol, extra_info=""):
logging.info("distance: %.2f Received \"%s\"%s", distance, symbol,
def log_symbol(distance, symbol, extra_info=""):
logging.info("distance: %.2f Received \"%s\"%s", distance, symbol,
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
from savemysugar.Modem import Modem
from savemysugar.CallDistanceTransceiver import CallDistanceTransceiver
from savemysugar.Modem import Modem
# TODO: set the logging level from the command line
FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"
# TODO: set the logging level from the command line
FORMAT = "%(created)f %(levelname)s:%(funcName)s %(message)s"