aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-29 08:42:10 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-12-29 08:42:10 +0100
commit1a3ae6085967be4cd76cabb2a630a04464f38748 (patch)
tree84db83ae4b82abcc292c8d33d7b20503f8d3a37f /dpd/src
parentbc25ed90fb34398f9fd3066b7237d1306628b16f (diff)
downloaddabmod-1a3ae6085967be4cd76cabb2a630a04464f38748.tar.gz
dabmod-1a3ae6085967be4cd76cabb2a630a04464f38748.tar.bz2
dabmod-1a3ae6085967be4cd76cabb2a630a04464f38748.zip
DPDCE: Add reset option
Diffstat (limited to 'dpd/src')
-rw-r--r--dpd/src/GlobalConfig.py2
-rw-r--r--dpd/src/Model_Poly.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/dpd/src/GlobalConfig.py b/dpd/src/GlobalConfig.py
index 684a881..b84b9d7 100644
--- a/dpd/src/GlobalConfig.py
+++ b/dpd/src/GlobalConfig.py
@@ -11,7 +11,7 @@ import numpy as np
class GlobalConfig:
def __init__(self, cli_args, plot_location):
- self.sample_rate = cli_args.sample_rate
+ self.sample_rate = cli_args.samplerate
assert self.sample_rate == 8192000 # By now only constants for 8192000
self.plot_location = plot_location
diff --git a/dpd/src/Model_Poly.py b/dpd/src/Model_Poly.py
index 3ec717b..cdfd319 100644
--- a/dpd/src/Model_Poly.py
+++ b/dpd/src/Model_Poly.py
@@ -55,7 +55,6 @@ class Poly:
self.coefs_am = np.zeros(5, dtype=np.float32)
self.coefs_am[0] = 1
self.coefs_pm = np.zeros(5, dtype=np.float32)
- return self.coefs_am, self.coefs_pm
def train(self, tx_abs, rx_abs, phase_diff, lr=None):
"""