示例#1
0
 def test_pre_filter(self):
     s2 = cfilter.pre_filter(self.s, 0.01)
     assert type(self.s) is type(s2)
示例#2
0
 def test_pre_filter_1d(self):
     x = np.random.randn(2**15) + 0.j
     y = cfilter.pre_filter(x, 0.01)
     assert x.shape == y.shape
示例#3
0
 def test_pre_filter_attr(self, attr):
     s2 = cfilter.pre_filter(self.s, 0.01)
     assert getattr(self.s, attr) is getattr(s2, attr)
示例#4
0
 def test_pre_filter(self, ndim):
     x = np.random.randn(ndim, 2**15) + 0.j
     y = cfilter.pre_filter(x, 0.01)
     assert x.shape == y.shape
示例#5
0
 def test_pre_filter(self, dtype):
     s = self.s.astype(dtype)
     s2 = cfilter.pre_filter(s, 0.01)
     assert s2.dtype is np.dtype(dtype)