Beispiel #1
0
 def test_apply_filter_basic(self):
     s2 = impairments.simulate_transmission(self.s,
                                            self.s.fb,
                                            self.s.fs,
                                            snr=20,
                                            dgd=100e-12)
     wx, err = equalisation.equalise_signal(s2, 1e-3, Ntaps=11)
     s3 = equalisation.apply_filter(s2, wx)
     assert type(s3) is type(self.s)
Beispiel #2
0
 def test_eq_applykw_dual(self):
     s2 = impairments.simulate_transmission(self.s,
                                            self.s.fb,
                                            self.s.fs,
                                            snr=20,
                                            dgd=100e-12)
     s3, wx, err = equalisation.dual_mode_equalisation(s2, (1e-3, 1e-3),
                                                       11,
                                                       apply=True)
     assert type(s3) is type(self.s)
Beispiel #3
0
 def test_eq_applykw(self):
     s2 = impairments.simulate_transmission(self.s,
                                            self.s.fb,
                                            self.s.fs,
                                            snr=20,
                                            dgd=100e-12)
     s3, wx, err = equalisation.equalise_signal(s2,
                                                1e-3,
                                                Ntaps=11,
                                                apply=True)
     assert type(s3) is type(self.s)
Beispiel #4
0
 def test_simulate_transmission(self, dtype):
     s = signals.SignalQAMGrayCoded(16,
                                    2**16,
                                    fb=10e9,
                                    nmodes=2,
                                    dtype=dtype)
     s2 = cimpairments.simulate_transmission(s,
                                             s.fb,
                                             s.fb,
                                             20,
                                             10e6,
                                             100e3,
                                             100e-12,
                                             modal_delay=[0, 100])
     assert s.dtype == s2.dtype