summaryrefslogtreecommitdiff
path: root/numpy/fft/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/fft/helper.py')
-rw-r--r--numpy/fft/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/fft/helper.py b/numpy/fft/helper.py
index e08f4b905..8bd2564de 100644
--- a/numpy/fft/helper.py
+++ b/numpy/fft/helper.py
@@ -60,7 +60,7 @@ def fftshift(x,axes=None):
y = tmp
for k in axes:
n = tmp.shape[k]
- p2 = (n+1)/2
+ p2 = (n+1)//2
mylist = concatenate((arange(p2,n),arange(p2)))
y = take(y,mylist,k)
return y
@@ -106,7 +106,7 @@ def ifftshift(x,axes=None):
y = tmp
for k in axes:
n = tmp.shape[k]
- p2 = n-(n+1)/2
+ p2 = n-(n+1)//2
mylist = concatenate((arange(p2,n),arange(p2)))
y = take(y,mylist,k)
return y