FFT_tools: add docstrings to separate function args and body
authorW. Trevor King <wking@tremily.us>
Sun, 18 Nov 2012 22:56:35 +0000 (17:56 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 18 Nov 2012 22:56:35 +0000 (17:56 -0500)
FFT_tools.py

index 13fd5a0c9e035936aab5b035750c14690712bf66..8c864c4891ec587f78bfb88ef842f1fda53057e9 100644 (file)
@@ -466,6 +466,7 @@ def _gaussian2(area, mean, std, t):
 
 def _test_unitary_power_spectrum_gaussian(
     area=2.5, mean=5, std=1, samp_freq=10.24, samples=512):
+    "Test unitary_power_spectrum() on the gaussian function"
     x = _numpy.zeros((samples,), dtype=_numpy.float)
     mean = _numpy.float(mean)
     for i in range(samples):
@@ -608,6 +609,7 @@ def unitary_avg_power_spectrum(data, freq=1.0, chunk_size=2048,
 def _test_unitary_avg_power_spectrum_sin(
     sin_freq=10, samp_freq=512, samples=1024, chunk_size=512, overlap=True,
     window=window_hann):
+    "Test unitary_avg_power_spectrum() on the sine function"
     x = _numpy.zeros((samples,), dtype=_numpy.float)
     samp_freq = _numpy.float(samp_freq)
     for i in range(samples):