summaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-09 17:57:22 +0100
committerandreas128 <Andreas>2017-08-09 17:57:22 +0100
commit4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114 (patch)
treee7da48d31a8aec41d32197b747fd5e06aa1cc0f4 /dpd
parentbf6f4d004f1e7cac99c26c8941844fcadab66e09 (diff)
downloaddabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.tar.gz
dabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.tar.bz2
dabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.zip
Fix Python 2.7 compatibility
Diffstat (limited to 'dpd')
-rwxr-xr-xdpd/main.py1
-rw-r--r--dpd/src/Measure.py2
2 files changed, 2 insertions, 1 deletions
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(