コード例 #1
0
ファイル: qa_noise.py プロジェクト: mfischer/gnuradio
    def test_002(self):
        # Test get methods
        set_type = analog.GR_GAUSSIAN
        set_ampl = 10
        op = analog.noise_source_f(set_type, set_ampl, 10)
        get_type = op.type()
        get_ampl = op.amplitude()

        self.assertEqual(get_type, set_type)
        self.assertEqual(get_ampl, set_ampl)
コード例 #2
0
ファイル: qa_noise.py プロジェクト: mfischer/gnuradio
 def test_001(self):
     # Just confirm that we can instantiate a noise source
     op = analog.noise_source_f(analog.GR_GAUSSIAN, 10, 10)