Ejemplo n.º 1
0
    def test_002(self):
        # Test get methods
        set_type = analog.GR_GAUSSIAN
        set_ampl = 10
        op = analog.fastnoise_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)
Ejemplo n.º 2
0
    def test_002(self):
        # Test get methods
        set_type = analog.GR_GAUSSIAN
        set_ampl = 10
        op = analog.fastnoise_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)
Ejemplo n.º 3
0
 def test_001(self):
     # Just confirm that we can instantiate a noise source
     op = analog.fastnoise_source_f(analog.GR_GAUSSIAN, 10, 10)
Ejemplo n.º 4
0
 def test_001(self):
     # Just confirm that we can instantiate a noise source
     op = analog.fastnoise_source_f(analog.GR_GAUSSIAN, 10, 10)