Skip to content

Commit

Permalink
Convert to int to not break datashader CI for numpy 2 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jun 28, 2024
1 parent 08b5448 commit a462550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spatialpandas/spatialindex/hilbert_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _binary_2_int(bin_vec):
next_val = 1
width = len(bin_vec)
for i in range(width):
res += next_val*bin_vec[width - i - 1]
res += next_val*int(bin_vec[width - i - 1])
next_val <<= 1
return res

Expand Down

0 comments on commit a462550

Please sign in to comment.