diff options
author | andreas128 <Andreas> | 2017-05-29 22:48:56 +0100 |
---|---|---|
committer | andreas128 <Andreas> | 2017-05-29 22:48:56 +0100 |
commit | f14e0d8bb1edf1b32c4da4dfce1aa079c4ad67d5 (patch) | |
tree | 97ec27e4aac1b9512ae6426d7d0f4f4764205bc2 /src/dab_util.py | |
parent | 59ff35e5b6a81150a87cc0b5a972a91bd64c3ab9 (diff) | |
download | ODR-StaticPrecorrection-f14e0d8bb1edf1b32c4da4dfce1aa079c4ad67d5.tar.gz ODR-StaticPrecorrection-f14e0d8bb1edf1b32c4da4dfce1aa079c4ad67d5.tar.bz2 ODR-StaticPrecorrection-f14e0d8bb1edf1b32c4da4dfce1aa079c4ad67d5.zip |
Fix complex float type
Diffstat (limited to 'src/dab_util.py')
-rw-r--r-- | src/dab_util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dab_util.py b/src/dab_util.py index 3187036..ff26fa5 100644 --- a/src/dab_util.py +++ b/src/dab_util.py @@ -81,6 +81,7 @@ 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)) @@ -95,7 +96,9 @@ 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): |