@@ -3,6 +3,7 @@ import numpy as np
33cimport numpy as np
44from libc.math cimport ceil, exp, floor, sqrt, round
55
6+
67@ cython.boundscheck (False )
78def 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