From b7afd841ff96bc44e872ca9e0a13adadaff46b77 Mon Sep 17 00:00:00 2001 From: forta Date: Wed, 16 May 2018 17:41:19 +0200 Subject: [PATCH] Import of 'util' module substituted with 'common'. --- tests/sample_run_adsb.py | 2 +- tests/sample_run_ehs.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/sample_run_adsb.py b/tests/sample_run_adsb.py index 6289cb3..8b8ecfb 100644 --- a/tests/sample_run_adsb.py +++ b/tests/sample_run_adsb.py @@ -1,5 +1,5 @@ from __future__ import print_function -from pyModeS import adsb, ehs, util +from pyModeS import adsb, ehs # === Decode sample data file === diff --git a/tests/sample_run_ehs.py b/tests/sample_run_ehs.py index 2636729..180562a 100644 --- a/tests/sample_run_ehs.py +++ b/tests/sample_run_ehs.py @@ -1,5 +1,5 @@ from __future__ import print_function -from pyModeS import adsb, ehs, util +from pyModeS import adsb, ehs, common # === Decode sample data file === @@ -50,10 +50,10 @@ def ehs_decode_all(df, n=None): ts = r[0] m = r[2] - df = util.df(m) + df = common.df(m) icao = ehs.icao(m) BDS = ehs.BDS(m) - code = ehs.df20alt(m) if df==20 else ehs.df21id(m) + code = common.altcode(m) if df == 20 else common.idcode(m) if not BDS: print(ts, m, icao, df, '%5s'%code, 'UNKNOWN')