summaryrefslogtreecommitdiffstats
path: root/dpd
diff options
context:
space:
mode:
Diffstat (limited to 'dpd')
-rw-r--r--dpd/src/MER.py4
-rw-r--r--dpd/src/Symbol_align.py4
-rw-r--r--dpd/src/const.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/dpd/src/MER.py b/dpd/src/MER.py
index 4f2918e..9c72dfb 100644
--- a/dpd/src/MER.py
+++ b/dpd/src/MER.py
@@ -20,8 +20,8 @@ matplotlib.use('agg')
import matplotlib.pyplot as plt
class MER:
- def __init__(self, sample_rate):
- self.c = src.const.const(sample_rate)
+ def __init__(self, c):
+ self.c = c
def _calc_spectrum(self, tx):
fft = np.fft.fftshift(np.fft.fft(tx))
diff --git a/dpd/src/Symbol_align.py b/dpd/src/Symbol_align.py
index 2f871bc..c9ae239 100644
--- a/dpd/src/Symbol_align.py
+++ b/dpd/src/Symbol_align.py
@@ -26,8 +26,8 @@ class Symbol_align:
Find the phase offset to the start of the DAB symbols in an
unaligned dab signal.
"""
- def __init__(self, sample_rate, plot=False):
- self.c = src.const.const(sample_rate)
+ def __init__(self, c, plot=False):
+ self.c = c
self.plot = plot
pass
diff --git a/dpd/src/const.py b/dpd/src/const.py
index 63a095b..6b0178f 100644
--- a/dpd/src/const.py
+++ b/dpd/src/const.py
@@ -6,7 +6,7 @@
import numpy as np
class const:
- def __init__(self, sample_rate):
+ def __init__(self, sample_rate, target_median):
self.sample_rate = sample_rate
# Time domain