Example #1
0
 def test_ifft_pair_cropped(self):
     my_ifft, my_fft = ifft(self.x_fft,
                            nfft=32,
                            fft_pair=True,
                            crop_fft=True)
     my_x = my_ifft(self.x_fft)
     assert_array_almost_equal(my_fft(my_x), self.x_fft)
Example #2
0
 def test_ifft_2d_nfft(self):  # No additional coverage for this, keep?
     my_ifft = ifft(self.x_fft_2, nfft=16)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2, n=16))
Example #3
0
 def test_ifft_2d_axis(self):
     my_ifft = ifft(self.x_fft_2, axis=0)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2, axis=0))
Example #4
0
 def test_ifft_2d_default(self):
     my_ifft = ifft(self.x_fft_2)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2))
Example #5
0
 def test_ifft_1d_nfft(self):
     my_ifft = ifft(self.x_fft, nfft=16)
     assert_array_almost_equal(my_ifft(self.x_fft),
                               np.fft.ifft(self.x_fft, n=16))
Example #6
0
 def test_ifft_1d(self):
     my_ifft = ifft(self.x_fft)
     assert_array_almost_equal(my_ifft(self.x_fft), np.fft.ifft(self.x_fft))
Example #7
0
 def test_ifft_pair(self):
     my_ifft, my_fft = ifft(self.x_fft, fft_pair=True)
     my_x = my_ifft(self.x_fft)
     assert_array_almost_equal(my_fft(my_x), self.x_fft)
Example #8
0
 def test_ifft_2d_nfft(self):    # No additional coverage for this, keep?
     my_ifft = ifft(self.x_fft_2, nfft=16)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2, n=16))
Example #9
0
 def test_ifft_2d_axis(self):
     my_ifft = ifft(self.x_fft_2, axis=0)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2, axis=0))
Example #10
0
 def test_ifft_2d_default(self):
     my_ifft = ifft(self.x_fft_2)
     assert_array_almost_equal(my_ifft(self.x_fft_2),
                               np.fft.ifft(self.x_fft_2))
Example #11
0
 def test_ifft_1d_nfft(self):
     my_ifft = ifft(self.x_fft, nfft=16)
     assert_array_almost_equal(my_ifft(self.x_fft),
                               np.fft.ifft(self.x_fft, n=16))
Example #12
0
 def test_ifft_1d(self):
     my_ifft = ifft(self.x_fft)
     assert_array_almost_equal(my_ifft(self.x_fft), np.fft.ifft(self.x_fft))