def test_mult_const_ii(self): src_data = (-1, 0, 1, 2, 3) expected_result = (-5, 0, 5, 10, 15) op = gr.multiply_const_ii(5) self.help_ii((src_data, ), expected_result, op)
def test_mult_const_ii (self): src_data = (-1, 0, 1, 2, 3) expected_result = (-5, 0, 5, 10, 15) op = gr.multiply_const_ii (5) self.help_ii_const ((src_data,), expected_result, op)
def __init__(self, fg, m, a): mult = gr.multiply_const_ii (m) add = gr.add_const_ii (a) fg.connect (mult, add) gr.hier_block.__init__ (self, fg, mult, add)