Skip to content

Commit

Permalink
addressing possible race condition in _weights_from_indices_multiline…
Browse files Browse the repository at this point in the history
…ar_1d
  • Loading branch information
jacobdparker committed Jan 17, 2024
1 parent f9f31f0 commit 156dd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regridding/_weights/_weights_multilinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _weights_from_indices_multilinear(
return weights, shape_input, shape_output


@numba.njit(parallel=True)
@numba.njit(parallel=False)
def _weights_from_indices_multilinear_1d(
indices_output: tuple[np.ndarray],
coordinates_input: tuple[np.ndarray],
Expand All @@ -103,7 +103,7 @@ def _weights_from_indices_multilinear_1d(

weights = numba.typed.List()

for d in numba.prange(num_d):
for d in range(num_d):
weights_d = numba.typed.List()
for _ in range(0):
weights_d.append((0.0, 0.0, 0.0))
Expand Down

0 comments on commit 156dd3b

Please sign in to comment.