def test_filters(self): gm = GM('./files/sample_accel.txt', unit='m') hp = gm.highpass(cutoff_freq=1.0, show_fig=True) lp = gm.lowpass(cutoff_freq=1.0, show_fig=True) bp = gm.bandpass(cutoff_freq=[0.5, 8], show_fig=True) bs = gm.bandstop(cutoff_freq=[0.5, 8], show_fig=True) self.assertTrue(isinstance(hp, GM)) self.assertTrue(isinstance(lp, GM)) self.assertTrue(isinstance(bp, GM)) self.assertTrue(isinstance(bs, GM))
def test_high_pass_filter(self): gm = GM(_join(f_dir, 'sample_accel.txt'), unit='m') hp = gm.highpass(cutoff_freq=1.0, show_fig=True) self.assertTrue(isinstance(hp, GM))