Skip to content

Commit 4d25029

Browse files
committed
Format cython file correctly
1 parent 733f230 commit 4d25029

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/powerfit_em/_powerfit.pyx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import numpy as np
33
cimport numpy as np
44
from libc.math cimport ceil, exp, floor, sqrt, round
55

6+
67
@cython.boundscheck(False)
78
def fsc_curve(np.ndarray[np.complex128_t, ndim=3] f1,
89
np.ndarray[np.complex128_t, ndim=3] f2):
@@ -107,16 +108,17 @@ def blur_points(np.ndarray[np.float64_t, ndim=2] points,
107108
for x in range(xmin, xmax+1):
108109
x2y2z2 = (x - points[0, n])**2 + y2z2
109110
if x2y2z2 <= extend2:
110-
out[z,y,x] += weights[n] * exp(-x2y2z2 / dsigma2)
111+
out[z, y, x] += weights[n] * exp(-x2y2z2 / dsigma2)
111112

112113

113114
@cython.boundscheck(False)
114115
@cython.cdivision(True)
115-
def dilate_points(np.ndarray[np.float64_t, ndim=2] points,
116-
np.ndarray[np.float64_t] radii,
117-
np.ndarray[np.float64_t, ndim=3] out,
118-
wraparound=False,
119-
):
116+
def dilate_points(
117+
np.ndarray[np.float64_t, ndim=2] points,
118+
np.ndarray[np.float64_t] radii,
119+
np.ndarray[np.float64_t, ndim=3] out,
120+
wraparound=False,
121+
):
120122
"""Dilate points into balls on a grid
121123
122124
Parameters
@@ -173,4 +175,4 @@ def dilate_points(np.ndarray[np.float64_t, ndim=2] points,
173175
for x in range(xmin, xmax):
174176
x2y2z2 = (x - points[0, n])**2 + y2z2
175177
if x2y2z2 <= radius2:
176-
out[z,y,x] = 1
178+
out[z, y, x] = 1

0 commit comments

Comments
 (0)