Skip to content

Commit

Permalink
remove equals float
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Jul 19, 2023
1 parent a8519da commit a618759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyart/map/ckdtree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ cdef inline np.float64_t _distance_p(np.float64_t *x, np.float64_t *y,
cdef np.intp_t i
cdef np.float64_t r, z
r = 0
if p==2.0:
if p==2:
for i in range(k):
z = x[i] - y[i]
r += z*z
Expand All @@ -308,7 +308,7 @@ cdef inline np.float64_t _distance_p(np.float64_t *x, np.float64_t *y,
r = dmax(r,dabs(x[i]-y[i]))
if r>upperbound:
return r
elif p==1.0:
elif p==1:
for i in range(k):
r += dabs(x[i]-y[i])
if r>upperbound:
Expand Down

0 comments on commit a618759

Please sign in to comment.