From 4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114 Mon Sep 17 00:00:00 2001 From: andreas128 Date: Wed, 9 Aug 2017 17:57:22 +0100 Subject: Fix Python 2.7 compatibility --- dpd/main.py | 1 + dpd/src/Measure.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dpd/main.py b/dpd/main.py index 98eeb84..1d525af 100755 --- a/dpd/main.py +++ b/dpd/main.py @@ -20,6 +20,7 @@ logging.basicConfig(format='%(asctime)s - %(module)s - %(levelname)s - %(message import src.Measure as Measure import src.Model as Model import src.Adapt as Adapt +import argparse parser = argparse.ArgumentParser(description="DPD Computation Engine for ODR-DabMod") parser.add_argument('--port', default='50055', diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py index 2ba3b37..7b5379d 100644 --- a/dpd/src/Measure.py +++ b/dpd/src/Measure.py @@ -108,7 +108,7 @@ class Measure: logging.debug("Disconnecting") s.close() - du = DU.Dab_Util(samplerate) + du = DU.Dab_Util(self.samplerate) txframe_aligned, rxframe_aligned = du.subsample_align(txframe, rxframe) logging.info( -- cgit v1.2.3