summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(