Skip to content

Commit

Permalink
try suggested fix for cython file
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 committed Jul 19, 2023
1 parent f824d2b commit 1da8dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyart/map/ckdtree.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ cdef inline np.float64_t _distance_p(np.float64_t *x, np.float64_t *y,
return r
else:
for i in range(k):
r += dabs(x[i]-y[i])**p
r += dabs(dabs(x[i]-y[i]))**p
if r>upperbound:
return r
return r
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [
"setuptools",
"setuptools_scm>=6.2",
"wheel",
"cython<3.0",
"cython",
"oldest-supported-numpy"
]

Expand Down

0 comments on commit 1da8dcf

Please sign in to comment.