File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def poly_contain_poly(
147
147
xy_poly_in[i_elt, 1 ],
148
148
xy_poly_out
149
149
)
150
- if wn == 0 :
150
+ if wn == 0 :
151
151
return False
152
152
return True
153
153
@@ -273,13 +273,14 @@ def distance_matrix(
273
273
@ wraparound (False )
274
274
@ boundscheck (False )
275
275
cdef dist_array_size(
276
- DTYPE_ui l_i ,
276
+ DTYPE_ui i_start ,
277
277
DTYPE_ui nb_c_per_l,
278
278
DTYPE_ui * nb_pt_per_c,
279
279
DTYPE_ui * c_i
280
280
):
281
- cdef DTYPE_ui i_elt, i_start, i_end, nb_pts
282
- i_start = l_i
281
+ """ Give slice to select data
282
+ """
283
+ cdef DTYPE_ui i_elt, i_end, nb_pts
283
284
i_end = i_start + nb_c_per_l
284
285
nb_pts = 0
285
286
@@ -302,6 +303,8 @@ def index_from_nearest_path(
302
303
DTYPE_coord xpt ,
303
304
DTYPE_coord ypt ,
304
305
):
306
+ """ Get index from nearest path
307
+ """
305
308
cdef DTYPE_ui i_elt
306
309
cdef DTYPE_ui nearesti, nb_contour
307
310
@@ -319,7 +322,7 @@ def index_from_nearest_path(
319
322
)
320
323
321
324
nearesti = nearest_contour_index(
322
- & y_value [0 ],
325
+ & x_value [0 ],
323
326
& y_value[0 ],
324
327
xpt,
325
328
ypt,
@@ -344,6 +347,8 @@ cdef nearest_contour_index(
344
347
DTYPE_ui start,
345
348
DTYPE_ui end,
346
349
):
350
+ """ Give index fron the nearest pts
351
+ """
347
352
cdef DTYPE_ui i_elt, i_ref
348
353
cdef DTYPE_coord dist, dist_ref
349
354
i_ref = start
@@ -353,5 +358,4 @@ cdef nearest_contour_index(
353
358
if dist < dist_ref:
354
359
dist_ref = dist
355
360
i_ref = i_elt
356
-
357
361
return i_ref - start
You can’t perform that action at this time.
0 commit comments