aboutsummaryrefslogtreecommitdiffstats
path: root/src/dab_util.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-05-29 23:30:58 +0100
committerandreas128 <Andreas>2017-05-29 23:30:58 +0100
commit3a31cd8ea0225b7b08ddbed8360618e4d17cad6f (patch)
tree066c5b86d236abe340e020edf4ccf42e442f36b2 /src/dab_util.py
parentf14e0d8bb1edf1b32c4da4dfce1aa079c4ad67d5 (diff)
downloadODR-StaticPrecorrection-3a31cd8ea0225b7b08ddbed8360618e4d17cad6f.tar.gz
ODR-StaticPrecorrection-3a31cd8ea0225b7b08ddbed8360618e4d17cad6f.tar.bz2
ODR-StaticPrecorrection-3a31cd8ea0225b7b08ddbed8360618e4d17cad6f.zip
Remove asserts
Diffstat (limited to 'src/dab_util.py')
-rw-r--r--src/dab_util.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/dab_util.py b/src/dab_util.py
index ff26fa5..3187036 100644
--- a/src/dab_util.py
+++ b/src/dab_util.py
@@ -81,7 +81,6 @@ def subsample_align(sig1, sig2):
"""
Returns an aligned version of sig1 and sig2 by cropping and subsample alignment
"""
- assert(sig2.dtype == 'complex64')
off_meas = lag_upsampling(sig2, sig1, n_up=1)
off = int(abs(off_meas))
@@ -96,9 +95,7 @@ def subsample_align(sig1, sig2):
sig1 = sig1[:-1]
sig2 = sig2[:-1]
- assert(sig2.dtype == 'complex64')
sig2 = sa.subsample_align(sig2, sig1)
- assert(sig2.dtype == 'complex64')
return sig1, sig2
def get_amp_ratio(ampl_1, ampl_2, a_out_abs, a_in_abs):