From: W. Trevor King Date: Sun, 18 Nov 2012 22:21:59 +0000 (-0500) Subject: FFT_tools: wrap long function calls for PEP8 compliance X-Git-Tag: 0.4~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=36c70be132758583f68601100be60d88880a1918;p=FFT-tools.git FFT_tools: wrap long function calls for PEP8 compliance --- diff --git a/FFT_tools.py b/FFT_tools.py index 87dcce5..a80d1d9 100644 --- a/FFT_tools.py +++ b/FFT_tools.py @@ -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(