Skip to content

Commit

Permalink
removed hard-coded R=3, added spaces for PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNeuralBit committed Sep 3, 2016
1 parent ace4902 commit 0525bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/measure/_ccomp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ cdef void get_shape_info(inarr_shape, shape_info *res) except *:
cdef inline bint close(DTYPE_t* data_p, DTYPE_t rindex, INTS_t idxdiff, INTS_t ratio):
cdef DTYPE_t bigger, smaller;
if data_p[rindex] > data_p[rindex + idxdiff]:
return data_p[rindex] < 3*data_p[rindex + idxdiff]
return data_p[rindex] < ratio * data_p[rindex + idxdiff]
else:
return data_p[rindex + idxdiff] < 3*data_p[rindex]
return data_p[rindex + idxdiff] < ratio * data_p[rindex]

cdef inline void join_trees_wrapper(DTYPE_t *data_p, DTYPE_t *forest_p,
DTYPE_t rindex, INTS_t idxdiff, INTS_t ratio):
Expand Down

0 comments on commit 0525bb9

Please sign in to comment.