def test_gain_scalar(self, signal):
        gain = +20.0
        # `.all()` because of multichannel signals
        assert ( np.abs( signal.gain(gain).leq() - (signal.leq() + gain) ) < 0.01 ).all()
        assert ( np.abs( signal.copy().gain(gain, inplace=True).leq() - (signal.leq()+gain) ) < 0.01 ).all()
dataset/ETHPy150Open python-acoustics/python-acoustics/tests/test__signal.py/TestSignal.test_gain_scalar/original