[Scipy-svn] r4726 - in trunk/scipy/fftpack: benchmarks tests

scipy-svn@scip... scipy-svn@scip...
Thu Sep 18 14:27:04 CDT 2008


Author: alan.mcintyre
Date: 2008-09-18 14:27:00 -0500 (Thu, 18 Sep 2008)
New Revision: 4726

Modified:
   trunk/scipy/fftpack/benchmarks/bench_basic.py
   trunk/scipy/fftpack/benchmarks/bench_pseudo_diffs.py
   trunk/scipy/fftpack/tests/test_basic.py
   trunk/scipy/fftpack/tests/test_helper.py
   trunk/scipy/fftpack/tests/test_pseudo_diffs.py
Log:
Removed unused imports.


Modified: trunk/scipy/fftpack/benchmarks/bench_basic.py
===================================================================
--- trunk/scipy/fftpack/benchmarks/bench_basic.py	2008-09-18 19:23:58 UTC (rev 4725)
+++ trunk/scipy/fftpack/benchmarks/bench_basic.py	2008-09-18 19:27:00 UTC (rev 4726)
@@ -2,11 +2,9 @@
 """
 import sys
 from numpy.testing import *
-from scipy.fftpack import ifft,fft,fftn,ifftn,rfft,irfft
-from scipy.fftpack import _fftpack as fftpack
+from scipy.fftpack import ifft, fft, fftn, irfft
 
-from numpy import arange, add, array, asarray, zeros, dot, exp, pi,\
-     swapaxes, double, cdouble
+from numpy import arange, asarray, zeros, dot, exp, pi, double, cdouble
 import numpy.fft
 
 from numpy.random import rand

Modified: trunk/scipy/fftpack/benchmarks/bench_pseudo_diffs.py
===================================================================
--- trunk/scipy/fftpack/benchmarks/bench_pseudo_diffs.py	2008-09-18 19:23:58 UTC (rev 4725)
+++ trunk/scipy/fftpack/benchmarks/bench_pseudo_diffs.py	2008-09-18 19:27:00 UTC (rev 4726)
@@ -2,12 +2,10 @@
 """
 import sys
 
-from numpy import arange, add, array, sin, cos, pi,exp,tanh,sum,sign
+from numpy import arange, sin, cos, pi, exp, tanh, sign
 
 from numpy.testing import *
-from scipy.fftpack import diff,fft,ifft,tilbert,itilbert,hilbert,ihilbert,rfft
-from scipy.fftpack import shift
-from scipy.fftpack import fftfreq
+from scipy.fftpack import diff, fft, ifft, tilbert, hilbert, shift, fftfreq
 
 def random(size):
     return rand(*size)

Modified: trunk/scipy/fftpack/tests/test_basic.py
===================================================================
--- trunk/scipy/fftpack/tests/test_basic.py	2008-09-18 19:23:58 UTC (rev 4725)
+++ trunk/scipy/fftpack/tests/test_basic.py	2008-09-18 19:27:00 UTC (rev 4726)
@@ -10,7 +10,7 @@
 Run tests if fftpack is not installed:
   python tests/test_basic.py
 """
-import sys
+
 from numpy.testing import *
 from scipy.fftpack import ifft,fft,fftn,ifftn,rfft,irfft
 from scipy.fftpack import _fftpack as fftpack

Modified: trunk/scipy/fftpack/tests/test_helper.py
===================================================================
--- trunk/scipy/fftpack/tests/test_helper.py	2008-09-18 19:23:58 UTC (rev 4725)
+++ trunk/scipy/fftpack/tests/test_helper.py	2008-09-18 19:27:00 UTC (rev 4726)
@@ -11,7 +11,6 @@
   python tests/test_helper.py [<level>]
 """
 
-import sys
 from numpy.testing import *
 from scipy.fftpack import fftshift,ifftshift,fftfreq,rfftfreq
 

Modified: trunk/scipy/fftpack/tests/test_pseudo_diffs.py
===================================================================
--- trunk/scipy/fftpack/tests/test_pseudo_diffs.py	2008-09-18 19:23:58 UTC (rev 4725)
+++ trunk/scipy/fftpack/tests/test_pseudo_diffs.py	2008-09-18 19:27:00 UTC (rev 4726)
@@ -10,13 +10,12 @@
 Run tests if fftpack is not installed:
   python tests/test_pseudo_diffs.py [<level>]
 """
-import sys
+
 from numpy.testing import *
-from scipy.fftpack import diff,fft,ifft,tilbert,itilbert,hilbert,ihilbert,rfft
-from scipy.fftpack import shift
-from scipy.fftpack import fftfreq
+from scipy.fftpack import diff, fft, ifft, tilbert, itilbert, hilbert, \
+                          ihilbert, shift, fftfreq
 
-from numpy import arange, add, array, sin, cos, pi,exp,tanh,sum,sign
+from numpy import arange, sin, cos, pi, exp, tanh, sum, sign
 
 def random(size):
     return rand(*size)



More information about the Scipy-svn mailing list