diff --git a/radae/dsp.py b/radae/dsp.py index 60e81c0..f323dea 100644 --- a/radae/dsp.py +++ b/radae/dsp.py @@ -775,7 +775,7 @@ def run_test(self,Nframes=10, EbNodB=100, phase_off=0, freq_off=0, mag=1, sample phase_vec = 2*np.pi*freq_off*np.arange(0,len(rx))/self.Fs + phase_off rx *= np.exp(1j*phase_vec) sigma = np.sqrt(1/(self.M*10**(EbNodB/10))) - noise = (sigma/np.sqrt(2))*(np.random.randn(len(rx)) + 1j*np.random.randn(len(rx))) + noise = (sigma/np.sqrt(2))*(self.rng.standard_normal(len(rx)) + 1j*self.rng.standard_normal(len(rx))) rx = mag*(rx + noise) # demodulate stream with rx