summaryrefslogtreecommitdiffstats
path: root/python/astra/extrautils.pyx
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-08 14:21:18 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2017-02-08 16:17:19 +0100
commit4c665b0d5af3841f20501a5dc01a23e671367856 (patch)
treecccde0fd4a3a2d92919338df4e162c9abfd079e1 /python/astra/extrautils.pyx
parent2af27e7ba08a65cce15c7e0658712fbba8f447fd (diff)
downloadastra-4c665b0d5af3841f20501a5dc01a23e671367856.tar.gz
astra-4c665b0d5af3841f20501a5dc01a23e671367856.tar.bz2
astra-4c665b0d5af3841f20501a5dc01a23e671367856.tar.xz
astra-4c665b0d5af3841f20501a5dc01a23e671367856.zip
Remove tabs from python code
Diffstat (limited to 'python/astra/extrautils.pyx')
-rw-r--r--python/astra/extrautils.pyx32
1 files changed, 16 insertions, 16 deletions
diff --git a/python/astra/extrautils.pyx b/python/astra/extrautils.pyx
index 502cc78..248c6ee 100644
--- a/python/astra/extrautils.pyx
+++ b/python/astra/extrautils.pyx
@@ -26,19 +26,19 @@
def clipCircle(img):
- cdef int i,j
- cdef double x2,y2,mid,bnd
- cdef long sz,sz2
- sz = img.shape[0]
- sz2 = sz*sz
- bnd = sz2/4.
- mid = (sz-1.)/2.
- nDel=0
- for i in range(sz):
- for j in range(sz):
- x2 = (i-mid)*(i-mid)
- y2 = (j-mid)*(j-mid)
- if x2+y2>bnd:
- img[i,j]=0
- nDel=nDel+1
- return nDel
+ cdef int i,j
+ cdef double x2,y2,mid,bnd
+ cdef long sz,sz2
+ sz = img.shape[0]
+ sz2 = sz*sz
+ bnd = sz2/4.
+ mid = (sz-1.)/2.
+ nDel=0
+ for i in range(sz):
+ for j in range(sz):
+ x2 = (i-mid)*(i-mid)
+ y2 = (j-mid)*(j-mid)
+ if x2+y2>bnd:
+ img[i,j]=0
+ nDel=nDel+1
+ return nDel