Skip to content

Commit

Permalink
Fixed a warning from numba.prange regarding implicit conversion fro…
Browse files Browse the repository at this point in the history
…m `uint64` to `int64`. (#8)
  • Loading branch information
byrdie authored Nov 11, 2024
1 parent 72c1b73 commit 9224d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions regridding/_conservative_ramshaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def _sweep_axis(
weight.append(w)

for i in numba.prange(shape_sweep_x):
i = numba.types.int64(i)

sweep_is_inside_static = False
j = 0
Expand Down Expand Up @@ -846,6 +847,7 @@ def _grid_area_sweep(
shape_output_x, shape_output_y = grid_x.shape

for i in numba.prange(shape_output_x):
i = numba.types.int64(i)

for j in range(shape_output_y - 1):

Expand Down
1 change: 1 addition & 0 deletions regridding/_regrid/_regrid_from_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def _regrid_from_weights(
) -> None:

for d in numba.prange(len(weights)):
d = numba.types.int64(d)
weights_d = weights[d]
values_input_d = values_input[d].reshape(-1)
values_output_d = values_output[d].reshape(-1)
Expand Down

0 comments on commit 9224d1f

Please sign in to comment.