FFT_tools: wrap long function calls for PEP8 compliance
authorW. Trevor King <wking@tremily.us>
Sun, 18 Nov 2012 22:21:59 +0000 (17:21 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 18 Nov 2012 22:21:59 +0000 (17:21 -0500)
FFT_tools.py

index 87dcce5df45be6dcc2623dcce31871758dbc913e..a80d1d97bc00e8e1d080b04139f25de22fbe6628 100644 (file)
@@ -495,11 +495,16 @@ def _test_unitary_power_spectrum_gaussian(
 
 def _test_unitary_power_spectrum_gaussian_suite():
     print('Test unitary power spectrums on various gaussian functions')
-    _test_unitary_power_spectrum_gaussian(area=1, std=1, samp_freq=10.0, samples=1024)
-    _test_unitary_power_spectrum_gaussian(area=1, std=2, samp_freq=10.0, samples=1024)
-    _test_unitary_power_spectrum_gaussian(area=1, std=1, samp_freq=10.0, samples=2048)
-    _test_unitary_power_spectrum_gaussian(area=1, std=1, samp_freq=20.0, samples=2048)
-    _test_unitary_power_spectrum_gaussian(area=3, std=1, samp_freq=10.0, samples=1024)
+    _test_unitary_power_spectrum_gaussian(
+        area=1, std=1, samp_freq=10.0, samples=1024)
+    _test_unitary_power_spectrum_gaussian(
+        area=1, std=2, samp_freq=10.0, samples=1024)
+    _test_unitary_power_spectrum_gaussian(
+        area=1, std=1, samp_freq=10.0, samples=2048)
+    _test_unitary_power_spectrum_gaussian(
+        area=1, std=1, samp_freq=20.0, samples=2048)
+    _test_unitary_power_spectrum_gaussian(
+        area=3, std=1, samp_freq=10.0, samples=1024)
     _test_unitary_power_spectrum_gaussian(
         area=_numpy.pi, std=_numpy.sqrt(2), samp_freq=_numpy.exp(1),
         samples=1024)
@@ -615,13 +620,19 @@ def _test_unitary_avg_power_spectrum_sin(
 
 def _test_unitary_avg_power_spectrum_sin_suite():
     print('Test unitary avg power spectrums on variously shaped sin functions')
-    _test_unitary_avg_power_spectrum_sin(sin_freq=5, samp_freq=512, samples=1024)
-    _test_unitary_avg_power_spectrum_sin(sin_freq=5, samp_freq=512, samples=2048)
-    _test_unitary_avg_power_spectrum_sin(sin_freq=5, samp_freq=512, samples=4098)
-    _test_unitary_avg_power_spectrum_sin(sin_freq=17, samp_freq=512, samples=1024)
-    _test_unitary_avg_power_spectrum_sin(sin_freq=5, samp_freq=1024, samples=2048)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=5, samp_freq=512, samples=1024)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=5, samp_freq=512, samples=2048)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=5, samp_freq=512, samples=4098)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=17, samp_freq=512, samples=1024)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=5, samp_freq=1024, samples=2048)
     # test long wavelenth sin, so be closer to window frequency
-    _test_unitary_avg_power_spectrum_sin(sin_freq=1, samp_freq=1024, samples=2048)
+    _test_unitary_avg_power_spectrum_sin(
+        sin_freq=1, samp_freq=1024, samples=2048)
     # finally, with some irrational numbers, to check that I'm not
     # getting lucky
     _test_unitary_avg_power_spectrum_sin(