Merge changes from hooke.util.fft
authorW. Trevor King <wking@tremily.us>
Mon, 19 Nov 2012 06:13:55 +0000 (01:13 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 19 Nov 2012 06:13:55 +0000 (01:13 -0500)
commit70aa1b8bc8ef02873265455ac9fc9d35279758af
tree2fba385d46db23bdc656dfa6e54ec4bb1c911dad
parentbf884b42dcf1f1ec96ff5489740531396196fae7
parentebb4e6726c7c06efa88949ef313897ee4e297504
Merge changes from hooke.util.fft

I'd bundled FFT_tools into Hooke back in 2010, when I was optimistic
about getting my Hooke branch accepted upstream.  Now that that seems
less likely, I'm went to tear the module back out of Hooke, and I
noticed some useful restructuring.  Here it is, merged back into the
FFT-tools.

Changes:

* Fancy Sphinx/numpydoc-style docstrings
* unittest-based test suite.

Conflicts:
  FFT_tools.py

The bulk of the conflics were due to parallel style cleanups, and had
trivial fixes.  I also copied the test code relatively unchanged from
the FFT-tools branch into the Hooke unittest framework.  Here is the
mapping:

Old FFT-tools function                       New unittest method
-------------------------------------------  ---------------------------------------------------------------
_test_rfft                                   TestRFFT.run_rfft
_test_rfft_suite                             TestRFFT.test_rfft
_test_unitary_rfft_parsevals                 TestUnitaryRFFT.run_unitary_rfft_parsevals
_test_unitary_rfft_parsevals_suite           TestUnitaryRFFT.test_unitary_rfft_parsevals
_rect                                        TestUnitaryRFFT.rect
_test_unitary_rfft_rect                      TestUnitaryRFFT.run_unitary_rfft_rect
_test_unitary_rfft_rect_suite                TestUnitaryRFFT.test_unitary_rfft_rect
_gaussian                                    TestUnitaryRFFT.gaussian
_test_unitary_rfft_gaussian                  TestUnitaryRFFT.run_unitary_rfft_gaussian
_test_unitary_power_spectrum_sin             TestUnitaryPowerSpectrum.run_unitary_power_spectrum_sin
_test_unitary_power_spectrum_sin_suite       TestUnitaryPowerSpectrum.test_unitary_power_spectrum_sin
_test_unitary_power_spectrum_delta           TestUnitaryPowerSpectrum.run_unitary_power_spectrum_delta
_test_unitary_power_spectrum_delta_suite     TestUnitaryPowerSpectrum.test_unitary_power_spectrum_delta
_gaussian2                                   TestUnitaryPowerSpectrum.gaussian
_test_unitary_power_spectrum_gaussian        TestUnitaryPowerSpectrum.run_unitary_power_spectrum_gaussian
_test_unitary_power_spectrum_gaussian_suite  TestUnitaryPowerSpectrum.test_unitary_power_spectrum_gaussian
_test_unitary_avg_power_spectrum_sin         TestUnitaryAvgPowerSpectrum.run_unitary_avg_power_spectrum_sin
_test_unitary_avg_power_spectrum_sin_suite   TestUnitaryAvgPowerSpectrum.test_unitary_avg_power_spectrum_sin
FFT_tools.py