diff options
author | andreas128 <Andreas> | 2017-08-09 17:57:22 +0100 |
---|---|---|
committer | andreas128 <Andreas> | 2017-08-09 17:57:22 +0100 |
commit | 4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114 (patch) | |
tree | e7da48d31a8aec41d32197b747fd5e06aa1cc0f4 /dpd | |
parent | bf6f4d004f1e7cac99c26c8941844fcadab66e09 (diff) | |
download | dabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.tar.gz dabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.tar.bz2 dabmod-4bd7cfadfbc2fd8347dcee8ae1682af4b8a52114.zip |
Fix Python 2.7 compatibility
Diffstat (limited to 'dpd')
-rwxr-xr-x | dpd/main.py | 1 | ||||
-rw-r--r-- | dpd/src/Measure.py | 2 |
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( |