def check_1pixshift_i(self): test_copy1 = self.test_sig_rand_i.copy() test_copy2 = test_copy1.copy() FTS.subsampInterp(test_copy1, 1.0, axis=0) util.shift(test_copy2, 1, axis=0) assert_array_almost_equal(test_copy2[1:-1,:,:], test_copy1[1:-1,:,:], decimal=5)
def check_flatshift(self): flat_sig = self.test_sig_flat.copy() FTS.subsampInterp(flat_sig, .15) assert_array_almost_equal(flat_sig, self.test_sig_flat)